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)
54
get => _copies != -1 ? _copies : GetModeField(
ModeField
.Copies, 1);
72
? GetModeField(
ModeField
.Collate, (short)DEVMODE_COLLATE.DMCOLLATE_FALSE) == (short)DEVMODE_COLLATE.DMCOLLATE_TRUE
91
get => _duplex != Duplex.Default ? _duplex : (Duplex)GetModeField(
ModeField
.Duplex, (short)DEVMODE_DUPLEX.DMDUP_SIMPLEX);
761
internal short GetModeField(
ModeField
field, short defaultValue) => GetModeField(field, defaultValue, modeHandle: default);
763
internal short GetModeField(
ModeField
field, short defaultValue, HGLOBAL modeHandle)
785
case
ModeField
.Orientation:
788
case
ModeField
.PaperSize:
791
case
ModeField
.PaperLength:
794
case
ModeField
.PaperWidth:
797
case
ModeField
.Copies:
800
case
ModeField
.DefaultSource:
803
case
ModeField
.PrintQuality:
806
case
ModeField
.Color:
809
case
ModeField
.Duplex:
812
case
ModeField
.YResolution:
815
case
ModeField
.TTOption:
818
case
ModeField
.Collate: