This topic has not yet been rated - Rate this topic

PageRange Structure

Specifies a range of pages.

Namespace:  System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
public struct PageRange
<PageRange .../>

The PageRange type exposes the following members.

  Name Description
Public method PageRange(Int32) Initializes a new instance of the PageRange class that includes only the single specified page.
Public method PageRange(Int32, Int32) Initializes a new instance of the PageRange class with the specified first and last pages.
Top
  Name Description
Public property PageFrom Gets or sets the page number of the first page in the range.
Public property PageTo Gets or sets the page number of the last page in the range.
Top
  Name Description
Public method Equals(Object) Tests whether an object of unknown type is equal to this PageRange. (Overrides ValueType.Equals(Object).)
Public method Equals(PageRange) Tests whether a PageRange is equal to this PageRange.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Gets the hash code value for the PageRange. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Gets a string representation of the range. (Overrides ValueType.ToString().)
Top
  Name Description
Public operator Static member Equality Defines the "==" operator for testing whether two specified PageRange objects are equal.
Public operator Static member Inequality Defines the "!=" operator for testing whether two specified PageRange objects are not equal.
Top

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ