Click or drag to resize

PaperSizeOf Method (Single, Single, PaperSizeUnit, String)

Creates a new paper size setting.

Namespace:  DotNetBrowser.Print
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.1
Syntax
C#
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: PaperSize
The paper size used for printing.
Exceptions
ExceptionCondition
ArgumentExceptionThe width is negative.
ArgumentExceptionThe height is negative.
ArgumentExceptionThe name is null , empty or contains only white space.
See Also