This documentation is archived and is not being maintained.

PaperSize Constructor

.NET Framework 1.1

Initializes a new instance of the PaperSize class.

[Visual Basic]
Public Sub New( _
   ByVal name As String, _
   ByVal width As Integer, _
   ByVal height As Integer _
public PaperSize(
   string name,
 int width,
 int height
public: PaperSize(
   String* name,
 int width,
 int height
public function PaperSize(
   name : String,
 width : int,
 height : int


The name of the paper.
The width of the paper, in hundredths of an inch.
The height of the paper, in hundredths of an inch.


Call this constructor to specify a paper size that is custom, providing the name, width and height. Alternatively, you can set the Width and Height properties by setting the Kind property to Custom.


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

See Also

PaperSize Class | PaperSize Members | System.Drawing.Printing Namespace