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
| Name | Type | Access | Description |
|---|---|---|---|
PaperName | string | Read/Write | The name of this size, empty for the standard sizes. |
Width | int | Read/Write | Width in hundredths of an inch. |
Height | int | Read/Write | Height in hundredths of an inch. |
Kind | PaperKind | Read/Write | Which standard size this is, or Custom. |
Methods
| Signature | Description |
|---|---|
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. |