PaperSize.Of Method (Single, Single, PaperSize.Unit) |
Creates a new paper size setting.
Namespace:
DotNetBrowser.Print
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.0
Syntaxpublic static PaperSize Of(
float width,
float height,
PaperSize.Unit unit
)
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.
Return Value
Type:
PaperSizeThe paper size used for printing.
ExceptionsException | Condition |
---|
ArgumentException | The width is negative. |
ArgumentException | The height is negative. |
See Also