This documentation is archived and is not being maintained.

PageRange Structure

Specifies a range of pages.

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

type PageRange =  struct end
<PageRange .../>

The PageRange type exposes the following members.

Public methodPageRange(Int32)Initializes a new instance of the PageRange class that includes only the single specified page.
Public methodPageRange(Int32, Int32)Initializes a new instance of the PageRange class with the specified first and last pages.

Public propertyPageFromGets or sets the page number of the first page in the range.
Public propertyPageToGets or sets the page number of the last page in the range.

Public methodEquals(Object)Tests whether an object of unknown type is equal to this PageRange. (Overrides ValueType.Equals(Object).)
Public methodEquals(PageRange)Tests whether a PageRange is equal to this PageRange.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeGets the hash code value for the PageRange. (Overrides ValueType.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringGets a string representation of the range. (Overrides ValueType.ToString().)

Public operatorStatic memberEqualityDefines the "==" operator for testing whether two specified PageRange objects are equal.
Public operatorStatic memberInequalityDefines the "!=" operator for testing whether two specified PageRange objects are not equal.

PageRange defines a range of pages that should be processed in an operation such as printing.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.