Class PaperSize
Specifies the size of a piece of paper.
public class PaperSize : BaseObject, IBaseObject
- Inheritance
-
PaperSize
- Implements
Remarks
This class is used by the PaperSize property to get the paper to set the paper size for a page. You can use the PaperSize constructor to specify a custom paper size. The SizeD property can be set only for custom PaperSize objects.
Constructors
- PaperSize(PaperKind)
Initializes a new instance of the PaperSize class with the specified paper kind.
- PaperSize(SizeD)
Initializes a new instance of the PaperSize class with the specified custom size, in millimeters.
- PaperSize(PaperKind?, SizeD?)
Initializes a new instance of the PaperSize class with the specified paper kind or a custom size.
Properties
- CustomSize
Gets the custom size of the paper, in millimeters. This property is valid only if IsCustom is true.
Methods
- ToString()
Returns a string that represents the current object.