15 references to Convert
System.Drawing.Common (14)
System\Drawing\Printing\PageSettings.cs (4)
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);
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);