PrintDialog.MaxPage Property
.NET Framework 3.5
Gets or sets the highest page number that is allowed in page ranges.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<object MaxPage="uint" .../>
Property Value
Type: System.UInt32A 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.