Table of Contents

Method GetSize

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

GetSize(KnownPaperKind)

Returns the dimensions of the specified standard paper type.

public virtual SizeD GetSize(KnownPaperKind kind)

Parameters

kind KnownPaperKind

A value from the KnownPaperKind enumeration that specifies the paper type for which to retrieve the size.

Returns

SizeD

A SizeD structure representing the width and height of the specified paper type, in the appropriate units.

Remarks

Use this method to obtain the standard dimensions for a variety of common paper sizes. Supplying an invalid or unsupported paper kind will result in an exception.

Exceptions

ArgumentOutOfRangeException

Thrown when the specified kind is not a valid value of the KnownPaperKind enumeration.