53 references to Display
System.Drawing.Common (10)
System\Drawing\Printing\PageSettings.cs (6)
258int length = PrinterUnitConvert.Convert(_paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 265int width = PrinterUnitConvert.Convert(_paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 275int length = PrinterUnitConvert.Convert(_paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 282int width = PrinterUnitConvert.Convert(_paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter); 416PrinterUnitConvert.Convert(devmode->Anonymous1.Anonymous1.dmPaperWidth, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display), 417PrinterUnitConvert.Convert(devmode->Anonymous1.Anonymous1.dmPaperLength, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
System\Drawing\Printing\PreviewPrintController.cs (1)
56Size metafileSize = PrinterUnitConvert.Convert(size, PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter);
System\Drawing\Printing\PrinterSettings.cs (2)
887PrinterUnitConvert.Convert(sizes[i].Width, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display), 888PrinterUnitConvert.Convert(sizes[i].Height, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
System\Drawing\Printing\PrinterUnitConvert.cs (1)
68case PrinterUnit.Display:
System.Drawing.Common.Tests (40)
System\Drawing\Printing\PrinterUnitConvertTests.cs (40)
35[InlineData(PrinterUnit.Display, PrinterUnit.Display, 100)] 36[InlineData(PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter, 2540)] 37[InlineData(PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter, 254)] 38[InlineData(PrinterUnit.Display, PrinterUnit.ThousandthsOfAnInch, 1000)] 39[InlineData(PrinterUnit.HundredthsOfAMillimeter, PrinterUnit.Display, 4)] 43[InlineData(PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display, 39)] 47[InlineData(PrinterUnit.ThousandthsOfAnInch, PrinterUnit.Display, 10)] 58[InlineData(PrinterUnit.Display, PrinterUnit.Display, 100, 1000)] 59[InlineData(PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter, 2540, 25400)] 60[InlineData(PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter, 254, 2540)] 61[InlineData(PrinterUnit.Display, PrinterUnit.ThousandthsOfAnInch, 1000, 10000)] 62[InlineData(PrinterUnit.HundredthsOfAMillimeter, PrinterUnit.Display, 4, 39)] 66[InlineData(PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display, 39, 394)] 70[InlineData(PrinterUnit.ThousandthsOfAnInch, PrinterUnit.Display, 10, 100)] 81[InlineData(PrinterUnit.Display, PrinterUnit.Display, 100, 1000)] 82[InlineData(PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter, 2540, 25400)] 83[InlineData(PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter, 254, 2540)] 84[InlineData(PrinterUnit.Display, PrinterUnit.ThousandthsOfAnInch, 1000, 10000)] 85[InlineData(PrinterUnit.HundredthsOfAMillimeter, PrinterUnit.Display, 4, 39)] 89[InlineData(PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display, 39, 394)] 93[InlineData(PrinterUnit.ThousandthsOfAnInch, PrinterUnit.Display, 10, 100)] 104[InlineData(PrinterUnit.Display, PrinterUnit.Display, 100, 1000)] 105[InlineData(PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter, 2540, 25400)] 106[InlineData(PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter, 254, 2540)] 107[InlineData(PrinterUnit.Display, PrinterUnit.ThousandthsOfAnInch, 1000, 10000)] 108[InlineData(PrinterUnit.HundredthsOfAMillimeter, PrinterUnit.Display, 4, 39)] 112[InlineData(PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display, 39, 394)] 116[InlineData(PrinterUnit.ThousandthsOfAnInch, PrinterUnit.Display, 10, 100)] 127[InlineData(PrinterUnit.Display, PrinterUnit.Display, 100, 1000, 100, 1000)] 128[InlineData(PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter, 2540, 25400, 2540, 25400)] 129[InlineData(PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter, 254, 2540, 254, 2540)] 130[InlineData(PrinterUnit.Display, PrinterUnit.ThousandthsOfAnInch, 1000, 10000, 1000, 10000)] 131[InlineData(PrinterUnit.HundredthsOfAMillimeter, PrinterUnit.Display, 4, 39, 4, 39)] 135[InlineData(PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display, 39, 394, 39, 394)] 139[InlineData(PrinterUnit.ThousandthsOfAnInch, PrinterUnit.Display, 10, 100, 10, 100)]
System.Windows.Forms (3)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
261pageSettings.Margins = PrinterUnitConvert.Convert(newMargins, fromUnit, PrinterUnit.Display); 304Margins margins = PrinterUnitConvert.Convert(MinMargins, PrinterUnit.Display, toUnit); 313Margins margins = PrinterUnitConvert.Convert(_pageSettings.Margins, PrinterUnit.Display, toUnit);