15 instantiations of PaperSize
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
64new System.Drawing.Printing.PaperSize(),
System.Drawing.Common.Tests (14)
System\Drawing\Printing\PageSettingsTests.cs (1)
42PaperSize = new PaperSize("My Custom Size", 222, 333)
System\Drawing\Printing\PaperSizeTests.cs (12)
36PaperSize size = new(); 50PaperSize size = new(name, width, height); 85PaperSize size = new() 112PaperSize size = new("name", 100, 200) 133PaperSize size = new() 149PaperSize size = new("name", 100, 200) 167PaperSize size = new() 194PaperSize size = new() 210PaperSize size = new("name", 100, 200) 219yield return new object[] { new PaperSize(), "[PaperSize Kind=Custom Height=0 Width=0]" }; 220yield return new object[] { new PaperSize("name", 1, 2), "[PaperSize name Kind=Custom Height=2 Width=1]" }; 221yield return new object[] { new PaperSize("name", -1, -2), "[PaperSize name Kind=Custom Height=-2 Width=-1]" };
System\Drawing\Printing\PrintDocumentTests.cs (1)
32PaperSize = new PaperSize()
32 references to PaperSize
System.Drawing (1)
System.Drawing.cs (1)
114[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.PaperSize))]
System.Drawing.Common (21)
System\Drawing\Printing\PageSettings.cs (7)
13private PaperSize? _paperSize; 114public PaperSize PaperSize 361PaperSize size = GetPaperSize(modeHandle); 371private PaperSize GetPaperSize(HGLOBAL modeHandle) 387PaperSize result = PaperSizeFromMode(devmode); 399private PaperSize PaperSizeFromMode(DEVMODEW* devmode) 401PaperSize[] sizes = _printerSettings.Get_PaperSizes();
System\Drawing\Printing\PaperSize.cs (2)
22/// Initializes a new instance of the <see cref='PaperSize'/> class with default properties. 40/// Initializes a new instance of the <see cref='PaperSize'/> class.
System\Drawing\Printing\PrinterSettings.cs (3)
840internal unsafe PaperSize[] Get_PaperSizes() 881PaperSize[] paperSizes = new PaperSize[count];
System\Drawing\Printing\PrinterSettings.PaperSizeCollection.cs (9)
12/// Collection of <see cref="PaperSize"/> objects. 16private PaperSize[] _array; 21public PaperSizeCollection(PaperSize[] array) => _array = array; 29/// Retrieves the <see cref="PaperSize"/> with the specified index. 31public virtual PaperSize this[int index] => _array[index]; 43public void CopyTo(PaperSize[] paperSizes, int index) => Array.Copy(_array, index, paperSizes, 0, _array.Length); 48public int Add(PaperSize paperSize) 50PaperSize[] newArray = new PaperSize[Count + 1];
System.Drawing.Common.Tests (10)
System\Drawing\Printing\PaperSizeTests.cs (10)
36PaperSize size = new(); 50PaperSize size = new(name, width, height); 85PaperSize size = new() 112PaperSize size = new("name", 100, 200) 133PaperSize size = new() 149PaperSize size = new("name", 100, 200) 167PaperSize size = new() 194PaperSize size = new() 210PaperSize size = new("name", 100, 200) 226public void ToString_Invoke_ReturnsExpected(PaperSize size, string expected)