15 instantiations of PaperSize
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
57new 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()
16 references to PaperSize
System.Drawing (1)
System.Drawing.cs (1)
114[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.PaperSize))]
System.Drawing.Common (5)
Special\NotSupported.cs (5)
2753public System.Drawing.Printing.PaperSize PaperSize { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3049public PaperSizeCollection(System.Drawing.Printing.PaperSize[] array) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3051public virtual System.Drawing.Printing.PaperSize this[int index] { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3056public int Add(System.Drawing.Printing.PaperSize paperSize) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3057public void CopyTo(System.Drawing.Printing.PaperSize[] paperSizes, int index) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
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)