PaperSizeOf Method (Single, Single, PaperSizeUnit) |
Creates a new paper size setting.
Namespace:
DotNetBrowser.Print
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.25.1
Syntax public static PaperSize Of(
float width,
float height,
PaperSizeUnit unit
)
Parameters
- width
- Type: SystemSingle
The paper size width. - height
- Type: SystemSingle
The paper size height. - unit
- Type: DotNetBrowser.PrintPaperSizeUnit
The width and height measurement unit.
Return Value
Type:
PaperSizeThe paper size used for printing.
Exceptions Exception | Condition |
---|
ArgumentException | The width is negative. |
ArgumentException | The height is negative. |
See Also