Method SetPageMargins
- Namespace
- DotNetBrowser.Print.Settings
- Assembly
- DotNetBrowser.dll
SetPageMargins<TPrintSettings>(IPageMargins<TPrintSettings>, PageMargins)
Configures the page margins for printing
public static TPrintSettings SetPageMargins<TPrintSettings>(this IPageMargins<TPrintSettings> obj, PageMargins pageMargins) where TPrintSettings : class, IPrintSettings
Parameters
obj
IPageMargins<TPrintSettings>The IPageMargins<TPrintSettings> implementation.
pageMargins
PageMarginsThe page margins for printing.
Returns
- TPrintSettings
The current print settings instance.
Type Parameters
TPrintSettings
The specific print settings type.
Exceptions
- ArgumentException
The specified page margins is null.
- ArgumentException
The specified page margins is not supported by the printer.