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
objIOrientation<TPrintSettings>The IOrientation<TPrintSettings> implementation.
orientationOrientationThe page orientation.
Returns
- TPrintSettings
The current print settings instance.
Type Parameters
TPrintSettingsThe specific print settings type.
Exceptions
- ArgumentException
The specified page orientation is not supported by the printer.