44 references to PrinterUnit
System.Drawing (35)
commonui\System\Drawing\Printing\PageSettings.cs (12)
360int length = PrinterUnitConvert.Convert(paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 366int width = PrinterUnitConvert.Convert(paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 376int length = PrinterUnitConvert.Convert(paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 382int width = PrinterUnitConvert.Convert(paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 500PrinterUnitConvert.Convert(mode.dmPaperWidth, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display), 501PrinterUnitConvert.Convert(mode.dmPaperLength, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
commonui\System\Drawing\Printing\PreviewPrintController.cs (2)
111Size metafileSize = PrinterUnitConvert.Convert(size, PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter);
commonui\System\Drawing\Printing\PrinterSettings.cs (4)
1212PrinterUnitConvert.Convert(width, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display), 1213PrinterUnitConvert.Convert(height, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (17)
33public static double Convert(double value, PrinterUnit fromUnit, PrinterUnit toUnit) { 45public static int Convert(int value, PrinterUnit fromUnit, PrinterUnit toUnit) { 55public static Point Convert(Point value, PrinterUnit fromUnit, PrinterUnit toUnit) { 68public static Size Convert(Size value, PrinterUnit fromUnit, PrinterUnit toUnit) { 81public static Rectangle Convert(Rectangle value, PrinterUnit fromUnit, PrinterUnit toUnit) { 96public static Margins Convert(Margins value, PrinterUnit fromUnit, PrinterUnit toUnit) { 107private static double UnitsPerDisplay(PrinterUnit unit) { 110case PrinterUnit.Display: 113case PrinterUnit.ThousandthsOfAnInch: 116case PrinterUnit.HundredthsOfAMillimeter: 119case PrinterUnit.TenthsOfAMillimeter:
System.Windows.Forms (9)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (9)
340PrinterUnit fromUnit = ((data.Flags & NativeMethods.PSD_INHUNDREDTHSOFMILLIMETERS) != 0) 341? PrinterUnit.HundredthsOfAMillimeter 342: PrinterUnit.ThousandthsOfAnInch; 344pageSettings.Margins = PrinterUnitConvert.Convert(newMargins, fromUnit, PrinterUnit.Display); 365PrinterUnit toUnit = PrinterUnit.ThousandthsOfAnInch; 377toUnit = PrinterUnit.HundredthsOfAMillimeter; 382Margins margins = PrinterUnitConvert.Convert(MinMargins, PrinterUnit.Display, toUnit); 390Margins margins = PrinterUnitConvert.Convert(pageSettings.Margins, PrinterUnit.Display, toUnit);