20 references to ModeField
System.Drawing (20)
commonui\System\Drawing\Printing\PageSettings.cs (3)
87
return printerSettings.GetModeField(
ModeField
.Color, SafeNativeMethods.DMCOLOR_MONOCHROME) == SafeNativeMethods.DMCOLOR_COLOR;
163
return printerSettings.GetModeField(
ModeField
.Orientation, SafeNativeMethods.DMORIENT_PORTRAIT) == SafeNativeMethods.DMORIENT_LANDSCAPE;
458
return printerSettings.GetModeField(
ModeField
.Orientation, SafeNativeMethods.DMORIENT_PORTRAIT, modeHandle) == SafeNativeMethods.DMORIENT_LANDSCAPE;
commonui\System\Drawing\Printing\PrinterSettings.cs (17)
96
return GetModeField(
ModeField
.Copies, 1);
126
return GetModeField(
ModeField
.Collate, SafeNativeMethods.DMCOLLATE_FALSE) == SafeNativeMethods.DMCOLLATE_TRUE;
175
return(Duplex) GetModeField(
ModeField
.Duplex, SafeNativeMethods.DMDUP_SIMPLEX);
1126
internal short GetModeField(
ModeField
field, short defaultValue) {
1132
internal short GetModeField(
ModeField
field, short defaultValue, IntPtr modeHandle) {
1150
case
ModeField
.Orientation: result = mode.dmOrientation; break;
1151
case
ModeField
.PaperSize: result = mode.dmPaperSize; break;
1152
case
ModeField
.PaperLength: result = mode.dmPaperLength; break;
1153
case
ModeField
.PaperWidth: result = mode.dmPaperWidth; break;
1154
case
ModeField
.Copies: result = mode.dmCopies; break;
1155
case
ModeField
.DefaultSource: result = mode.dmDefaultSource; break;
1156
case
ModeField
.PrintQuality: result = mode.dmPrintQuality; break;
1157
case
ModeField
.Color: result = mode.dmColor; break;
1158
case
ModeField
.Duplex: result = mode.dmDuplex; break;
1159
case
ModeField
.YResolution: result = mode.dmYResolution; break;
1160
case
ModeField
.TTOption: result = mode.dmTTOption; break;
1161
case
ModeField
.Collate: result = mode.dmCollate; break;