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