Method GetSize
GetSize(KnownPaperKind)
Returns the dimensions of the specified standard paper type.
public virtual SizeD GetSize(KnownPaperKind kind)
Parameters
kindKnownPaperKindA 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.