19 references to Duplex
System.Drawing (1)
System.Drawing.cs (1)
108
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Printing.
Duplex
))]
System.Drawing.Common (9)
System\Drawing\Printing\PrinterSettings.cs (9)
24
private
Duplex
_duplex =
Duplex
.Default;
89
public
Duplex
Duplex
91
get => _duplex !=
Duplex
.Default ? _duplex : (
Duplex
)GetModeField(ModeField.Duplex, (short)DEVMODE_DUPLEX.DMDUP_SIMPLEX);
94
if (value is <
Duplex
.Default or >
Duplex
.Horizontal)
96
throw new InvalidEnumArgumentException(nameof(value), (int)value, typeof(
Duplex
));
1014
_duplex = (
Duplex
)devmode->dmDuplex;
System.Drawing.Common.Tests (9)
System\Drawing\Printing\PrinterSettingsTests.cs (9)
104
[InlineData(
Duplex
.Simplex)]
105
[InlineData(
Duplex
.Vertical)]
106
[InlineData(
Duplex
.Horizontal)]
107
public void Duplex_SetValue_ReturnsExpected(
Duplex
duplex)
118
[InlineData(
Duplex
.Default - 1)]
119
[InlineData(
Duplex
.Horizontal + 1)]
120
[InlineData((
Duplex
)int.MaxValue)]
121
[InlineData((
Duplex
)int.MinValue)]
122
public void Duplex_Invalid_ThrowsInvalidEnumArgumentException(
Duplex
duplex)