15 references to Kind
System.Drawing.Common (2)
System\Drawing\Printing\PageSettings.cs (1)
270if (_paperSize.Kind == PaperKind.Custom)
System\Drawing\Printing\PaperSize.cs (1)
119public override string ToString() => $"[PaperSize {PaperName} Kind={Kind} Height={Height.ToString(CultureInfo.InvariantCulture)} Width={Width.ToString(CultureInfo.InvariantCulture)}]";
System.Drawing.Common.Tests (13)
System\Drawing\Printing\PageSettingsTests.cs (2)
55Assert.Equal(ps.PaperSize.Kind, clone.PaperSize.Kind);
System\Drawing\Printing\PaperSizeTests.cs (4)
37Assert.Equal(PaperKind.Custom, size.Kind); 51Assert.Equal(PaperKind.Custom, size.Kind); 172Assert.Equal(expectedKind, size.Kind); 177Assert.Equal(expectedKind, size.Kind);
System\Drawing\Printing\PrintDocumentTests.cs (7)
55Assert.Equal(_pageSettings.PaperSize.Kind, _pageSettings.PaperSize.Kind); 117document.PrinterSettings.DefaultPageSettings.PaperSize.Kind, 118document.DefaultPageSettings.PaperSize.Kind); 123_pageSettings.PaperSize.Kind, 124document.DefaultPageSettings.PaperSize.Kind); 235switch (pageSettings.PaperSize.Kind)