15 instantiations of PaperSize
PresentationCore.Tests (1)
BinaryFormat\DataObjectTests.cs (1)
64
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
()
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)
13
private
PaperSize
? _paperSize;
114
public
PaperSize
PaperSize
361
PaperSize
size = GetPaperSize(modeHandle);
371
private
PaperSize
GetPaperSize(HGLOBAL modeHandle)
387
PaperSize
result = PaperSizeFromMode(devmode);
399
private
PaperSize
PaperSizeFromMode(DEVMODEW* devmode)
401
PaperSize
[] 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)
840
internal unsafe
PaperSize
[] Get_PaperSizes()
881
PaperSize
[] paperSizes = new
PaperSize
[count];
System\Drawing\Printing\PrinterSettings.PaperSizeCollection.cs (9)
12
/// Collection of <see cref="
PaperSize
"/> objects.
16
private
PaperSize
[] _array;
21
public PaperSizeCollection(
PaperSize
[] array) => _array = array;
29
/// Retrieves the <see cref="
PaperSize
"/> with the specified index.
31
public virtual
PaperSize
this[int index] => _array[index];
43
public void CopyTo(
PaperSize
[] paperSizes, int index) => Array.Copy(_array, index, paperSizes, 0, _array.Length);
48
public int Add(
PaperSize
paperSize)
50
PaperSize
[] newArray = new
PaperSize
[Count + 1];
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)