Method Of
- Namespace
- DotNetBrowser.Print
- Assembly
- DotNetBrowser.dll
Of(float, float, Unit, string)
Creates a new paper size setting.
public static PaperSize Of(float width, float height, PaperSize.Unit unit, string name)
Parameters
widthfloatThe paper size width.
heightfloatThe paper size height.
unitPaperSize.UnitThe
widthandheightmeasurement unit.namestringThe name of the paper size.
Returns
- PaperSize
The paper size used for printing.
Exceptions
- ArgumentException
The
widthis negative.- ArgumentException
The
heightis negative.- ArgumentException
The
nameis null , empty or contains only white space.
Of(float, float, Unit)
Creates a new paper size setting.
public static PaperSize Of(float width, float height, PaperSize.Unit unit)
Parameters
widthfloatThe paper size width.
heightfloatThe paper size height.
unitPaperSize.UnitThe
widthandheightmeasurement unit.
Returns
- PaperSize
The paper size used for printing.
Exceptions
- ArgumentException
The
widthis negative.- ArgumentException
The
heightis negative.