FitExtensionsSetFitTPrintSettings Method |
Sets the content fit for printing.
Namespace:
DotNetBrowser.Print.Settings
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.7
Syntax public static TPrintSettings SetFit<TPrintSettings>(
this IFit<TPrintSettings> obj,
Fit fit
)
where TPrintSettings : class, IPrintSettings
Parameters
- obj
- Type: DotNetBrowser.Print.SettingsIFitTPrintSettings
The IFitTPrintSettings implementation. - fit
- Type: DotNetBrowser.PrintFit
The content fit used for printing.
Type Parameters
- TPrintSettings
- The specific print settings type.
Return Value
Type:
TPrintSettingsThe 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
IFitTPrintSettings. 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 Exception | Condition |
---|
ArgumentNullException | The specified fit is null. |
ArgumentException | The specified fit is not supported by the printer. |
See Also