18 references to PaperKind
System.Drawing (17)
commonui\System\Drawing\Printing\PageSettings.cs (2)
371
if (paperSize.Kind ==
PaperKind
.Custom)
498
return new PaperSize(
PaperKind
.Custom, "custom",
commonui\System\Drawing\Printing\PaperSize.cs (14)
26
private
PaperKind
kind;
43
this.kind =
PaperKind
.Custom;
48
internal PaperSize(
PaperKind
kind, string name, int width, int height) {
62
this.kind =
PaperKind
.Custom;
79
if (kind !=
PaperKind
.Custom && !this.createdByDefaultConstructor) throw new ArgumentException(SR.GetString(SR.PSizeNotCustom));
91
public
PaperKind
Kind {
93
if (kind <= (
PaperKind
)SafeNativeMethods.DMPAPER_LAST &&
94
!(kind == (
PaperKind
)SafeNativeMethods.DMPAPER_RESERVED_48 || kind == (
PaperKind
)SafeNativeMethods.DMPAPER_RESERVED_49))
97
return
PaperKind
.Custom;
110
if (kind !=
PaperKind
.Custom && !this.createdByDefaultConstructor) throw new ArgumentException(SR.GetString(SR.PSizeNotCustom));
125
set { kind = unchecked((
PaperKind
) value); }
139
if (kind !=
PaperKind
.Custom && !createdByDefaultConstructor) throw new ArgumentException(SR.GetString(SR.PSizeNotCustom));
308
+ " Kind=" + unchecked(TypeDescriptor.GetConverter(typeof(
PaperKind
)).ConvertToString((int) Kind))
commonui\System\Drawing\Printing\PrinterSettings.cs (1)
1211
result[i] = new PaperSize((
PaperKind
) kind, name,
System.Workflow.ComponentModel (1)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1166
PaperKind
paperKind = this.printDocument.DefaultPageSettings.PaperSize.Kind;