27 references to PaperKind
System.Drawing (1)
System.Drawing.cs (1)
113[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.PaperKind))]
System.Drawing.Common (1)
Special\NotSupported.cs (1)
2890public System.Drawing.Printing.PaperKind Kind { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } }
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: