17 references to Convert
System.Drawing.Common (16)
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\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 (8)
35new(Convert(value.X, fromUnit, toUnit), Convert(value.Y, fromUnit, toUnit)); 41new(Convert(value.Width, fromUnit, toUnit), Convert(value.Height, fromUnit, toUnit)); 47Convert(value.X, fromUnit, toUnit), 48Convert(value.Y, fromUnit, toUnit), 49Convert(value.Width, fromUnit, toUnit), 50Convert(value.Height, fromUnit, toUnit));
System.Drawing.Common.Tests (1)
System\Drawing\Printing\PrinterUnitConvertTests.cs (1)
53int converted = PrinterUnitConvert.Convert(100, fromUnit, toUnit);