Beispiel #1
0
 public static Padding ConvertDipToMmPadding(Padding value)
 {
     return(new Padding()
     {
         Left = (int)GridExportUtils.DipToMm((double)value.Left), Top = (int)GridExportUtils.DipToMm((double)value.Top), Right = (int)GridExportUtils.DipToMm((double)value.Right), Bottom = (int)GridExportUtils.DipToMm((double)value.Bottom)
     });
 }
Beispiel #2
0
 public static SizeF ConvertDipToMmSize(SizeF value)
 {
     return(new SizeF((float)GridExportUtils.DipToMm((double)value.Width), (float)GridExportUtils.DipToMm((double)value.Height)));
 }