PrintDialog.MaxPage 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 highest page number that is allowed in page ranges.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

member MaxPage : uint32 with get, set

Property Value

Type: System.UInt32

A UInt32 that represents the highest page number that can be used in a page range in the Print dialog box.

Exception Condition
ArgumentException

The property is being set to less than 1.

Users who click Print when the Print dialog box is set to print pages outside the range that is set by the MaxPage and MinPage values will get an error message advising them of the maximum and minimum page numbers. Nothing will be printed.

.NET Framework
Available since 3.0
Return to top
Show: