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 _
)
[C#]
public PaperSize(
   string name,
 int width,
 int height
);
[C++]
public: PaperSize(
   String* name,
 int width,
 int height
);
[JScript]
public function PaperSize(
   name : String,
 width : int,
 height : int
);

Parameters

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

Remarks

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.

Requirements

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

Show: