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)
24private Duplex _duplex = Duplex.Default; 89public Duplex Duplex 91get => _duplex != Duplex.Default ? _duplex : (Duplex)GetModeField(ModeField.Duplex, (short)DEVMODE_DUPLEX.DMDUP_SIMPLEX); 94if (value is < Duplex.Default or > Duplex.Horizontal) 96throw 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)] 107public 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)] 122public void Duplex_Invalid_ThrowsInvalidEnumArgumentException(Duplex duplex)