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)
270if (_paperSize.Kind == PaperKind.Custom) 414PaperKind.Custom,
System\Drawing\Printing\PaperSize.cs (13)
13private PaperKind _kind; 26_kind = PaperKind.Custom; 31internal PaperSize(PaperKind kind, string name, int width, int height) 44_kind = PaperKind.Custom; 58if (_kind != PaperKind.Custom && !_createdByDefaultConstructor) 70public PaperKind Kind 71=> _kind is <= ((PaperKind)PInvoke.DMPAPER_LAST) 72and not (((PaperKind)PInvoke.DMPAPER_RESERVED_48) or ((PaperKind)PInvoke.DMPAPER_RESERVED_49)) 74: PaperKind.Custom; 84if (_kind != PaperKind.Custom && !_createdByDefaultConstructor) 99set => _kind = (PaperKind)value; 110if (_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)
37Assert.Equal(PaperKind.Custom, size.Kind); 51Assert.Equal(PaperKind.Custom, size.Kind); 60yield return new object[] { (int)PaperKind.A4 }; 61yield return new object[] { (int)PaperKind.JapaneseEnvelopeKakuNumber3 }; 62yield return new object[] { (int)PaperKind.Custom }; 68yield return new object[] { 1 + (int)PaperKind.PrcEnvelopeNumber10Rotated }; 99yield return new object[] { (int)PaperKind.A4 }; 100yield return new object[] { (int)PaperKind.JapaneseEnvelopeKakuNumber3 }; 105yield 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)] 165public void RawKind_Set_GetReturnsExpected(int value, PaperKind expectedKind)
System\Drawing\Printing\PrintDocumentTests.cs (3)
34RawKind = (int)PaperKind.A3 237case PaperKind.A4: 241case PaperKind.Letter: