42 references to PaperKind
System.Drawing (1)
System.Drawing.cs (1)
113
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.
PaperKind
))]
System.Drawing.Common (16)
System\Drawing\Printing\PageSettings.cs (2)
270
if (_paperSize.Kind ==
PaperKind
.Custom)
414
PaperKind
.Custom,
System\Drawing\Printing\PaperSize.cs (13)
13
private
PaperKind
_kind;
26
_kind =
PaperKind
.Custom;
31
internal PaperSize(
PaperKind
kind, string name, int width, int height)
44
_kind =
PaperKind
.Custom;
58
if (_kind !=
PaperKind
.Custom && !_createdByDefaultConstructor)
70
public
PaperKind
Kind
71
=> _kind is <= ((
PaperKind
)PInvoke.DMPAPER_LAST)
72
and not (((
PaperKind
)PInvoke.DMPAPER_RESERVED_48) or ((
PaperKind
)PInvoke.DMPAPER_RESERVED_49))
74
:
PaperKind
.Custom;
84
if (_kind !=
PaperKind
.Custom && !_createdByDefaultConstructor)
99
set => _kind = (
PaperKind
)value;
110
if (_kind !=
PaperKind
.Custom && !_createdByDefaultConstructor)
System\Drawing\Printing\PrinterSettings.cs (1)
885
(
PaperKind
)kinds[i],
System.Drawing.Common.Tests (25)
System\Drawing\Printing\PaperSizeTests.cs (22)
37
Assert.Equal(
PaperKind
.Custom, size.Kind);
51
Assert.Equal(
PaperKind
.Custom, size.Kind);
60
yield return new object[] { (int)
PaperKind
.A4 };
61
yield return new object[] { (int)
PaperKind
.JapaneseEnvelopeKakuNumber3 };
62
yield return new object[] { (int)
PaperKind
.Custom };
68
yield return new object[] { 1 + (int)
PaperKind
.PrcEnvelopeNumber10Rotated };
99
yield return new object[] { (int)
PaperKind
.A4 };
100
yield return new object[] { (int)
PaperKind
.JapaneseEnvelopeKakuNumber3 };
105
yield return new object[] { 1 + (int)
PaperKind
.PrcEnvelopeNumber10Rotated };
157
[InlineData((int)
PaperKind
.Custom,
PaperKind
.Custom)]
158
[InlineData((int)
PaperKind
.A4,
PaperKind
.A4)]
159
[InlineData((int)
PaperKind
.JapaneseEnvelopeKakuNumber3,
PaperKind
.JapaneseEnvelopeKakuNumber3)]
160
[InlineData(999999,
PaperKind
.Custom)]
161
[InlineData(int.MaxValue,
PaperKind
.Custom)]
162
[InlineData(1 + (int)
PaperKind
.PrcEnvelopeNumber10Rotated,
PaperKind
.Custom)]
163
[InlineData(-1, (
PaperKind
)(-1))]
164
[InlineData(int.MinValue, (
PaperKind
)int.MinValue)]
165
public void RawKind_Set_GetReturnsExpected(int value,
PaperKind
expectedKind)
System\Drawing\Printing\PrintDocumentTests.cs (3)
34
RawKind = (int)
PaperKind
.A3
237
case
PaperKind
.A4:
241
case
PaperKind
.Letter: