44 references to PaperSourceKind
System.Drawing (1)
System.Drawing.cs (1)
116[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.PaperSourceKind))]
System.Drawing.Common (8)
System\Drawing\Printing\PageSettings.cs (1)
436return new PaperSource((PaperSourceKind)devmode->dmDefaultSource, "unknown");
System\Drawing\Printing\PaperSource.cs (6)
12private PaperSourceKind _kind; 19_kind = PaperSourceKind.Custom; 23internal PaperSource(PaperSourceKind kind, string name) 32public PaperSourceKind Kind => (int)_kind >= PInvoke.DMBIN_USER ? PaperSourceKind.Custom : _kind; 40set => _kind = (PaperSourceKind)value;
System\Drawing\Printing\PrinterSettings.cs (1)
931(PaperSourceKind)kinds[i],
System.Drawing.Common.Tests (35)
System\Drawing\Printing\PaperSourceTests.cs (35)
37Assert.Equal(PaperSourceKind.Custom, source.Kind); 38Assert.Equal((int)PaperSourceKind.Custom, source.RawKind); 43[InlineData((int)PaperSourceKind.Custom, PaperSourceKind.Custom)] 44[InlineData((int)PaperSourceKind.Upper, PaperSourceKind.Upper)] 45[InlineData((int)PaperSourceKind.TractorFeed, PaperSourceKind.TractorFeed)] 46[InlineData((int)PaperSourceKind.SmallFormat, PaperSourceKind.SmallFormat)] 47[InlineData((int)PaperSourceKind.Middle, PaperSourceKind.Middle)] 48[InlineData((int)PaperSourceKind.ManualFeed, PaperSourceKind.ManualFeed)] 49[InlineData((int)PaperSourceKind.Manual, PaperSourceKind.Manual)] 50[InlineData((int)PaperSourceKind.Lower, PaperSourceKind.Lower)] 51[InlineData((int)PaperSourceKind.LargeFormat, PaperSourceKind.LargeFormat)] 52[InlineData((int)PaperSourceKind.LargeCapacity, PaperSourceKind.LargeCapacity)] 53[InlineData((int)PaperSourceKind.FormSource, PaperSourceKind.FormSource)] 54[InlineData((int)PaperSourceKind.Envelope, PaperSourceKind.Envelope)] 55[InlineData((int)PaperSourceKind.Cassette, PaperSourceKind.Cassette)] 56[InlineData((int)PaperSourceKind.AutomaticFeed, PaperSourceKind.AutomaticFeed)] 57[InlineData(int.MaxValue, PaperSourceKind.Custom)] 58[InlineData(int.MinValue, (PaperSourceKind)int.MinValue)] 59[InlineData(0, (PaperSourceKind)0)] 60[InlineData(256, PaperSourceKind.Custom)] 61public void RawKind_Set_GetReturnsExpected(int value, PaperSourceKind expectedKind)