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