PaperSize.Height Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the height of the paper, in hundredths of an inch.

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

public int Height { get; set; }

Property Value

Type: System.Int32

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

Exception Condition
ArgumentException

The Kind property is not set to Custom.

This height measurement is for the portrait orientation of the paper. The Width and Height property values can be set only for custom PaperSize objects.

.NET Framework
Available since 1.1
Return to top
Show: