PrintRange Enumeration

 
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.

Specifies the part of the document to print.

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

[SerializableAttribute]
public enum PrintRange

Member nameDescription
AllPages

All pages are printed.

CurrentPage

The currently displayed page is printed

Selection

The selected pages are printed.

SomePages

The pages between FromPage and ToPage are printed.

The PrinterSettings and PrintDialog classes use this enumeration.

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

.NET Framework
Available since 1.1
Return to top
Show: