Constructor PaperSize
PaperSize(SizeD)
Initializes a new instance of the PaperSize class with the specified custom size, in millimeters.
public PaperSize(SizeD customSize)
Parameters
customSizeSizeDThe 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
paperKindPaperKindThe 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
paperKindPaperKind?The standard paper kind to use for the paper size, or null to specify a custom size.
customSizeSizeD?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.