Click or drag to resize

DuplexModeExtensions.SetDuplexMode<TPrintSettings> Method

Sets the duplex mode.

Namespace:  DotNetBrowser.Print.Settings
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.11
Syntax
C#
public static TPrintSettings SetDuplexMode<TPrintSettings>(
	this IDuplexMode<TPrintSettings> obj,
	DuplexMode duplexMode
)
where TPrintSettings : class, IPrintSettings

Parameters

obj
Type: DotNetBrowser.Print.Settings.IDuplexMode<TPrintSettings>
The IDuplexMode<TPrintSettings> implementation.
duplexMode
Type: DotNetBrowser.Print.DuplexMode
The duplex mode used for printing.

Type Parameters

TPrintSettings
The specific print settings type.

Return Value

Type: TPrintSettings
The current print settings instance.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDuplexMode<TPrintSettings>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentExceptionThe specified duplex mode is not supported by the printer.
See Also