PaperSize.Of Method (Single, Single, PaperSize.Unit, String) |
Creates a new paper size setting.
Namespace:
DotNetBrowser.Print
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.1
Syntaxpublic static PaperSize Of(
float width,
float height,
PaperSize.Unit unit,
string name
)
Parameters
- width
- Type: System.Single
The paper size width. - height
- Type: System.Single
The paper size height. - unit
- Type: DotNetBrowser.Print.PaperSize.Unit
The width and height measurement unit. - name
- Type: System.String
The name of the paper size.
Return Value
Type:
PaperSizeThe paper size used for printing.
ExceptionsException | Condition |
---|
ArgumentException | The width is negative. |
ArgumentException | The height is negative. |
ArgumentException | The name is null , empty or contains only white space. |
See Also