15 instantiations of PaperSize
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
57
new System.Drawing.Printing.
PaperSize
(),
System.Drawing.Common.Tests (14)
System\Drawing\Printing\PageSettingsTests.cs (1)
42
PaperSize = new
PaperSize
("My Custom Size", 222, 333)
System\Drawing\Printing\PaperSizeTests.cs (12)
36
PaperSize size =
new
();
50
PaperSize size =
new
(name, width, height);
85
PaperSize size =
new
()
112
PaperSize size =
new
("name", 100, 200)
133
PaperSize size =
new
()
149
PaperSize size =
new
("name", 100, 200)
167
PaperSize size =
new
()
194
PaperSize size =
new
()
210
PaperSize size =
new
("name", 100, 200)
219
yield return new object[] { new
PaperSize
(), "[PaperSize Kind=Custom Height=0 Width=0]" };
220
yield return new object[] { new
PaperSize
("name", 1, 2), "[PaperSize name Kind=Custom Height=2 Width=1]" };
221
yield return new object[] { new
PaperSize
("name", -1, -2), "[PaperSize name Kind=Custom Height=-2 Width=-1]" };
System\Drawing\Printing\PrintDocumentTests.cs (1)
32
PaperSize = 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)
2753
public System.Drawing.Printing.
PaperSize
PaperSize { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
3049
public PaperSizeCollection(System.Drawing.Printing.
PaperSize
[] array) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
3051
public virtual System.Drawing.Printing.
PaperSize
this[int index] { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
3056
public int Add(System.Drawing.Printing.
PaperSize
paperSize) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
3057
public 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)
36
PaperSize
size = new();
50
PaperSize
size = new(name, width, height);
85
PaperSize
size = new()
112
PaperSize
size = new("name", 100, 200)
133
PaperSize
size = new()
149
PaperSize
size = new("name", 100, 200)
167
PaperSize
size = new()
194
PaperSize
size = new()
210
PaperSize
size = new("name", 100, 200)
226
public void ToString_Invoke_ReturnsExpected(
PaperSize
size, string expected)