PaperSize

Overview

PaperSize is a class in Aspose.PDF FOSS for .NET.

The size of a sheet of paper, in hundredths of an inch - the unit PaperSize uses, so the two convert without scaling.

This class declares 3 methods for PaperSize objects in .NET programs. Available methods include: PaperSize, ToString. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: Height, Kind, PaperName, Width.

Properties

NameTypeAccessDescription
PaperNamestringRead/WriteThe name of this size, empty for the standard sizes.
WidthintRead/WriteWidth in hundredths of an inch.
HeightintRead/WriteHeight in hundredths of an inch.
KindPaperKindRead/WriteWhich standard size this is, or Custom.

Methods

SignatureDescription
PaperSize()Creates an unnamed custom size of zero extent.
PaperSize(name: string, width: int, height: int)Creates a custom size with the given name and dimensions in hundredths of an inch.
ToString()Calls ToString on this PaperSize instance.

See Also

 English