System.Drawing.Printing.PrintRange Enumeration

Specifies the part of the document to print.

Syntax

public enum PrintRange

Remarks

The System.Drawing.Printing.PrinterSettings and System.Windows.Forms.PrintDialog classes use this enumeration.

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

Members

Member NameDescription
AllPages

All pages are printed.

CurrentPage

The currently displayed page is printed

Selection

The selected pages are printed.

SomePages

The pages between PrinterSettings.FromPage and PrinterSettings.ToPage are printed.

Requirements

Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0