Click or drag to resize

PaperSize.Of Method (Single, Single, PaperSize.Unit, String)

Creates a new paper size setting.

Namespace:  DotNetBrowser.Print
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.26.1
Syntax
C#
public static PaperSize Of(
	float width,
	float height,
	PaperSize.Unit unit,
	string name
)

Parameters

width
Type: System.Single
The paper size width.
height
Type: System.Single
The paper size height.
unit
Type: DotNetBrowser.Print.PaperSize.Unit
The width and height measurement unit.
name
Type: System.String
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