PaperSize Class
Specifies the size of a piece of paper.
For a list of all members of this type, see PaperSize Members.
System.Object
System.Drawing.Printing.PaperSize
[Visual Basic] Public Class PaperSize [C#] public class PaperSize [C++] public __gc class PaperSize [JScript] 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.
Remarks
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.
Requirements
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