Пример #1
0
 public static Padding ConvertMmToDipPadding(Padding value)
 {
     return(new Padding()
     {
         Left = (int)GridExportUtils.MmToDip((double)value.Left), Top = (int)GridExportUtils.MmToDip((double)value.Top), Right = (int)GridExportUtils.MmToDip((double)value.Right), Bottom = (int)GridExportUtils.MmToDip((double)value.Bottom)
     });
 }
Пример #2
0
 public static SizeF ConvertMmToDipSize(SizeF value)
 {
     return(new SizeF((float)GridExportUtils.MmToDip((double)value.Width), (float)GridExportUtils.MmToDip((double)value.Height)));
 }