Table of Contents

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 float

The paper size width.

height float

The paper size height.

unit PaperSize.Unit

The width and height measurement unit.

name string

The 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 float

The paper size width.

height float

The paper size height.

unit PaperSize.Unit

The width and height measurement unit.

Returns

PaperSize

The paper size used for printing.

Exceptions

ArgumentException

The width is negative.

ArgumentException

The height is negative.