23 references to PrinterResolutionKind
System.Drawing (23)
commonui\System\Drawing\Printing\PageSettings.cs (5)
393
if (printerResolution.Kind ==
PrinterResolutionKind
.Custom) {
526
if (resolutions[i].X == unchecked((int)(
PrinterResolutionKind
) mode.dmPrintQuality)
527
&& resolutions[i].Y == unchecked((int)(
PrinterResolutionKind
) mode.dmYResolution))
533
if (resolutions[i].Kind == (
PrinterResolutionKind
) mode.dmPrintQuality)
538
return new PrinterResolution(
PrinterResolutionKind
.Custom,
commonui\System\Drawing\Printing\PrinterResolution.cs (9)
27
private
PrinterResolutionKind
kind;
38
this.kind =
PrinterResolutionKind
.Custom;
41
internal PrinterResolution(
PrinterResolutionKind
kind, int x, int y) {
55
public
PrinterResolutionKind
Kind {
59
if (!ClientUtils.IsEnumValid(value, unchecked((int)value), unchecked((int)
PrinterResolutionKind
.High), unchecked((int)
PrinterResolutionKind
.Custom)))
61
throw new InvalidEnumArgumentException("value", unchecked((int)value), typeof(
PrinterResolutionKind
));
110
if (kind !=
PrinterResolutionKind
.Custom)
111
return "[PrinterResolution " + TypeDescriptor.GetConverter(typeof(
PrinterResolutionKind
)).ConvertToString((int) Kind)
commonui\System\Drawing\Printing\PrinterSettings.cs (9)
1269
result[0] = new PrinterResolution(
PrinterResolutionKind
.High, -4, -1);
1270
result[1] = new PrinterResolution(
PrinterResolutionKind
.Medium, -3, -1);
1271
result[2] = new PrinterResolution(
PrinterResolutionKind
.Low, -2, -1);
1272
result[3] = new PrinterResolution(
PrinterResolutionKind
.Draft, -1, -1);
1278
result[0] = new PrinterResolution(
PrinterResolutionKind
.High, -4, -1);
1279
result[1] = new PrinterResolution(
PrinterResolutionKind
.Medium, -3, -1);
1280
result[2] = new PrinterResolution(
PrinterResolutionKind
.Low, -2, -1);
1281
result[3] = new PrinterResolution(
PrinterResolutionKind
.Draft, -1, -1);
1289
result[i + 4] = new PrinterResolution(
PrinterResolutionKind
.Custom, x, y);