System.Drawing.Printing.PaperSize Class

Specifies the size of a piece of paper.

See Also: PaperSize Members


public class PaperSize


This class is used by the PrinterSettings.PaperSizes and PageSettings.PaperSize properties to get the paper sizes that are available on the printer and to set the paper size for a page, respectively.

You can use the erload:System.Drawing.Printing.PaperSize.#ctor constructor to specify a custom paper size. The PaperSize.Width and PaperSize.Height property values can be set only for custom System.Drawing.Printing.PaperSize objects.

For more information about printing, see the System.Drawing.Printing namespace overview.


Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,