15 references to Kind
System.Drawing.Common (2)
System\Drawing\Printing\PageSettings.cs (1)
270
if (_paperSize.
Kind
== PaperKind.Custom)
System\Drawing\Printing\PaperSize.cs (1)
119
public 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)
55
Assert.Equal(ps.PaperSize.
Kind
, clone.PaperSize.
Kind
);
System\Drawing\Printing\PaperSizeTests.cs (4)
37
Assert.Equal(PaperKind.Custom, size.
Kind
);
51
Assert.Equal(PaperKind.Custom, size.
Kind
);
172
Assert.Equal(expectedKind, size.
Kind
);
177
Assert.Equal(expectedKind, size.
Kind
);
System\Drawing\Printing\PrintDocumentTests.cs (7)
55
Assert.Equal(_pageSettings.PaperSize.
Kind
, _pageSettings.PaperSize.
Kind
);
117
document.PrinterSettings.DefaultPageSettings.PaperSize.
Kind
,
118
document.DefaultPageSettings.PaperSize.
Kind
);
123
_pageSettings.PaperSize.
Kind
,
124
document.DefaultPageSettings.PaperSize.
Kind
);
235
switch (pageSettings.PaperSize.
Kind
)