This documentation is archived and is not being maintained.

PaperSize Class

Specifies the size of a piece of paper.

For a list of all members of this type, see PaperSize Members.


[Visual Basic]
Public Class PaperSize
public class PaperSize
public __gc class PaperSize
public class PaperSize

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


This class is used by 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 PaperSize constructor to specify a custom paper size. Alternatively, you can set the Width and Height properties by setting the Kind property to Custom.

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


Namespace: System.Drawing.Printing

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

PaperSize Members | System.Drawing.Printing Namespace | Kind | PrinterSettings | PrinterSettings.PaperSizes | PageSettings.PaperSize | ListControl.DisplayMember