16 instantiations of PrinterResolution
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
66
new System.Drawing.Printing.
PrinterResolution
(),
System.Drawing.Common (6)
System\Drawing\Printing\PageSettings.cs (1)
463
return new
PrinterResolution
(
System\Drawing\Printing\PrinterSettings.cs (5)
960
result[0] =
new
(PrinterResolutionKind.High, -4, -1);
961
result[1] =
new
(PrinterResolutionKind.Medium, -3, -1);
962
result[2] =
new
(PrinterResolutionKind.Low, -2, -1);
963
result[3] =
new
(PrinterResolutionKind.Draft, -1, -1);
975
result[i + 4] = new
PrinterResolution
(PrinterResolutionKind.Custom, resolution.X, resolution.Y);
System.Drawing.Common.Tests (9)
System\Drawing\Printing\PrinterResolutionTests.cs (9)
13
PrinterResolution resolution =
new
();
27
PrinterResolution resolution =
new
()
46
PrinterResolution resolution =
new
()
65
PrinterResolution resolution =
new
()
81
PrinterResolution resolution =
new
();
87
yield return new object[] { new
PrinterResolution
(), "[PrinterResolution X=0 Y=0]" };
88
yield return new object[] { new
PrinterResolution
{ X = -1, Y = -2}, "[PrinterResolution X=-1 Y=-2]" };
89
yield return new object[] { new
PrinterResolution
{ Kind = PrinterResolutionKind.High }, "[PrinterResolution High]" };
90
yield return new object[] { new
PrinterResolution
{ X = 1, Y = 2, Kind = PrinterResolutionKind.High }, "[PrinterResolution High]" };
23 references to PrinterResolution
System.Drawing (1)
System.Drawing.cs (1)
122
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.
PrinterResolution
))]
System.Drawing.Common (16)
System\Drawing\Printing\PageSettings.cs (5)
15
private
PrinterResolution
? _printerResolution;
181
public
PrinterResolution
PrinterResolution
192
PrinterResolution
result = PrinterResolutionFromMode(devmode);
439
private
PrinterResolution
PrinterResolutionFromMode(DEVMODEW* devmode)
441
PrinterResolution
[] resolutions = _printerSettings.Get_PrinterResolutions();
System\Drawing\Printing\PrinterResolution.cs (1)
16
/// Initializes a new instance of the <see cref='
PrinterResolution
'/> class with default properties.
System\Drawing\Printing\PrinterSettings.cs (3)
938
internal unsafe
PrinterResolution
[] Get_PrinterResolutions()
942
PrinterResolution
[] result;
959
result = new
PrinterResolution
[count + 4];
System\Drawing\Printing\PrinterSettings.PrinterResolutionCollection.cs (7)
13
private
PrinterResolution
[] _array;
18
public PrinterResolutionCollection(
PrinterResolution
[] array) => _array = array;
28
public virtual
PrinterResolution
this[int index] => _array[index];
40
public void CopyTo(
PrinterResolution
[] printerResolutions, int index) => Array.Copy(_array, index, printerResolutions, 0, _array.Length);
45
public int Add(
PrinterResolution
printerResolution)
47
PrinterResolution
[] newArray = new
PrinterResolution
[Count + 1];
System.Drawing.Common.Tests (6)
System\Drawing\Printing\PrinterResolutionTests.cs (6)
13
PrinterResolution
resolution = new();
27
PrinterResolution
resolution = new()
46
PrinterResolution
resolution = new()
65
PrinterResolution
resolution = new()
81
PrinterResolution
resolution = new();
95
public void ToString_Invoke_ReturnsExpected(
PrinterResolution
resolution, string expected)