Method SetScaling
- Namespace
- DotNetBrowser.Print.Settings
- Assembly
- DotNetBrowser.dll
SetScaling<TPrintSettings>(IScaling<TPrintSettings>, Scaling)
Sets the scaling for printing.
public static TPrintSettings SetScaling<TPrintSettings>(this IScaling<TPrintSettings> obj, Scaling scaling) where TPrintSettings : class, IPrintSettings
Parameters
obj
IScaling<TPrintSettings>The IScaling<TPrintSettings> implementation.
scaling
ScalingThe scaling used for printing.
Returns
- TPrintSettings
The current print settings instance.
Type Parameters
TPrintSettings
The specific print settings type.
Exceptions
- ArgumentNullException
The specified scaling is null.
- ArgumentException
The specified scaling is not supported by the printer.