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