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