Click or drag to resize

PaperSizeOf Method (Single, Single, PaperSizeUnit)

Creates a new paper size setting.

Namespace:  DotNetBrowser.Print
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.27.3
Syntax
C#
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: PaperSize
The paper size used for printing.
Exceptions
ExceptionCondition
ArgumentExceptionThe width is negative.
ArgumentExceptionThe height is negative.
See Also