PaperSizeOf Method (Single, Single, PaperSizeUnit, String) |
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,
string name
)
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. - name
- Type: SystemString
The name of the paper size.
Return Value
Type:
PaperSizeThe paper size used for printing.
Exceptions Exception | Condition |
---|
ArgumentException | The width is negative. |
ArgumentException | The height is negative. |
ArgumentException | The name is null , empty or contains only white space. |
See Also