20 references to ModeField
System.Drawing.Common (20)
System\Drawing\Printing\PageSettings.cs (3)
56? _printerSettings.GetModeField(ModeField.Color, (short)DEVMODE_COLOR.DMCOLOR_MONOCHROME) == (short)DEVMODE_COLOR.DMCOLOR_MONOCHROME 97? _printerSettings.GetModeField(ModeField.Orientation, (short)PInvokeCore.DMORIENT_PORTRAIT) == PInvokeCore.DMORIENT_LANDSCAPE 367? _printerSettings.GetModeField(ModeField.Orientation, (short)PInvokeCore.DMORIENT_PORTRAIT, modeHandle) == PInvokeCore.DMORIENT_LANDSCAPE
System\Drawing\Printing\PrinterSettings.cs (17)
54get => _copies != -1 ? _copies : GetModeField(ModeField.Copies, 1); 72? GetModeField(ModeField.Collate, (short)DEVMODE_COLLATE.DMCOLLATE_FALSE) == (short)DEVMODE_COLLATE.DMCOLLATE_TRUE 91get => _duplex != Duplex.Default ? _duplex : (Duplex)GetModeField(ModeField.Duplex, (short)DEVMODE_DUPLEX.DMDUP_SIMPLEX); 761internal short GetModeField(ModeField field, short defaultValue) => GetModeField(field, defaultValue, modeHandle: default); 763internal short GetModeField(ModeField field, short defaultValue, HGLOBAL modeHandle) 785case ModeField.Orientation: 788case ModeField.PaperSize: 791case ModeField.PaperLength: 794case ModeField.PaperWidth: 797case ModeField.Copies: 800case ModeField.DefaultSource: 803case ModeField.PrintQuality: 806case ModeField.Color: 809case ModeField.Duplex: 812case ModeField.YResolution: 815case ModeField.TTOption: 818case ModeField.Collate: