18 references to PrinterUnitConvert
System.Drawing (1)
System.Drawing.cs (1)
126
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.
PrinterUnitConvert
))]
System.Drawing.Common (9)
System\Drawing\Printing\PageSettings.cs (6)
258
int length =
PrinterUnitConvert
.Convert(_paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
265
int width =
PrinterUnitConvert
.Convert(_paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
275
int length =
PrinterUnitConvert
.Convert(_paperSize.Height, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
282
int width =
PrinterUnitConvert
.Convert(_paperSize.Width, PrinterUnit.Display, PrinterUnit.TenthsOfAMillimeter);
416
PrinterUnitConvert
.Convert(devmode->Anonymous1.Anonymous1.dmPaperWidth, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display),
417
PrinterUnitConvert
.Convert(devmode->Anonymous1.Anonymous1.dmPaperLength, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
System\Drawing\Printing\PreviewPrintController.cs (1)
56
Size metafileSize =
PrinterUnitConvert
.Convert(size, PrinterUnit.Display, PrinterUnit.HundredthsOfAMillimeter);
System\Drawing\Printing\PrinterSettings.cs (2)
887
PrinterUnitConvert
.Convert(sizes[i].Width, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display),
888
PrinterUnitConvert
.Convert(sizes[i].Height, PrinterUnit.TenthsOfAMillimeter, PrinterUnit.Display));
System.Drawing.Common.Tests (5)
System\Drawing\Printing\PrinterUnitConvertTests.cs (5)
53
int converted =
PrinterUnitConvert
.Convert(100, fromUnit, toUnit);
76
var converted =
PrinterUnitConvert
.Convert(new Point(100, 1000), fromUnit, toUnit);
99
var converted =
PrinterUnitConvert
.Convert(new Rectangle(100, 1000, 100, 1000), fromUnit, toUnit);
122
var converted =
PrinterUnitConvert
.Convert(new Size(100, 1000), fromUnit, toUnit);
145
var converted =
PrinterUnitConvert
.Convert(new Margins(100, 1000, 100, 1000), fromUnit, toUnit);
System.Windows.Forms (3)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
261
pageSettings.Margins =
PrinterUnitConvert
.Convert(newMargins, fromUnit, PrinterUnit.Display);
304
Margins margins =
PrinterUnitConvert
.Convert(MinMargins, PrinterUnit.Display, toUnit);
313
Margins margins =
PrinterUnitConvert
.Convert(_pageSettings.Margins, PrinterUnit.Display, toUnit);