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
width
floatThe paper size width.
height
floatThe paper size height.
unit
PaperSize.UnitThe
width
andheight
measurement unit.name
stringThe name of the paper size.
Returns
- PaperSize
The paper size used for printing.
Exceptions
- ArgumentException
The
width
is negative.- ArgumentException
The
height
is negative.- ArgumentException
The
name
is 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
width
floatThe paper size width.
height
floatThe paper size height.
unit
PaperSize.UnitThe
width
andheight
measurement unit.
Returns
- PaperSize
The paper size used for printing.
Exceptions
- ArgumentException
The
width
is negative.- ArgumentException
The
height
is negative.