12 references to PrinterUnitConvert
System.Drawing (9)
commonui\System\Drawing\Printing\PageSettings.cs (6)
360
int length =
PrinterUnitConvert
.Convert(paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
366
int width =
PrinterUnitConvert
.Convert(paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
376
int length =
PrinterUnitConvert
.Convert(paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
382
int width =
PrinterUnitConvert
.Convert(paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
500
PrinterUnitConvert
.Convert(mode.dmPaperWidth, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display),
501
PrinterUnitConvert
.Convert(mode.dmPaperLength, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
commonui\System\Drawing\Printing\PreviewPrintController.cs (1)
111
Size metafileSize =
PrinterUnitConvert
.Convert(size, PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter);
commonui\System\Drawing\Printing\PrinterSettings.cs (2)
1212
PrinterUnitConvert
.Convert(width, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display),
1213
PrinterUnitConvert
.Convert(height, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (3)
344
pageSettings.Margins =
PrinterUnitConvert
.Convert(newMargins, fromUnit, PrinterUnit.Display);
382
Margins margins =
PrinterUnitConvert
.Convert(MinMargins, PrinterUnit.Display, toUnit);
390
Margins margins =
PrinterUnitConvert
.Convert(pageSettings.Margins, PrinterUnit.Display, toUnit);