Method SetOrientation
- Namespace
- DotNetBrowser.Print.Settings
- Assembly
- DotNetBrowser.dll
SetOrientation<TPrintSettings>(IOrientation<TPrintSettings>, Orientation)
Sets the page orientation.
public static TPrintSettings SetOrientation<TPrintSettings>(this IOrientation<TPrintSettings> obj, Orientation orientation) where TPrintSettings : class, IPrintSettings
Parameters
obj
IOrientation<TPrintSettings>The IOrientation<TPrintSettings> implementation.
orientation
OrientationThe page orientation.
Returns
- TPrintSettings
The current print settings instance.
Type Parameters
TPrintSettings
The specific print settings type.
Exceptions
- ArgumentException
The specified page orientation is not supported by the printer.