Table of Contents

Constructor PaperSize

Namespace
Alternet.Drawing.Printing
Assembly
Alternet.UI.Common.dll

PaperSize(SizeD)

Initializes a new instance of the PaperSize class with the specified custom size, in millimeters.

public PaperSize(SizeD customSize)

Parameters

customSize SizeD

The custom size of the paper, in millimeters.

PaperSize(PaperKind)

Initializes a new instance of the PaperSize class with the specified paper kind.

public PaperSize(PaperKind paperKind)

Parameters

paperKind PaperKind

The type of paper.

PaperSize(PaperKind?, SizeD?)

Initializes a new instance of the PaperSize class with the specified paper kind or a custom size.

public PaperSize(PaperKind? paperKind, SizeD? customSize)

Parameters

paperKind PaperKind?

The standard paper kind to use for the paper size, or null to specify a custom size.

customSize SizeD?

The custom paper size to use if paperKind is null. If null, the size is set to an empty value.

Remarks

If paperKind is specified, the instance represents a standard paper size. If customSize is provided and paperKind is null, the instance represents a custom paper size.