skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Struct PageRange

Specifies a range of pages.

Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Telerik.WinControls.UI.Diagrams
Assembly: Telerik.WinControls.RadDiagram.dll

Syntax

public struct PageRange

Constructors

PageRange(Int32)

Initializes a new instance of the System.Windows.Controls.PageRange class that includes only the single specified page.

Declaration
public PageRange(int page)
Parameters
System.Int32 page

The page that is printed or processed.

PageRange(Int32, Int32)

Initializes a new instance of the System.Windows.Controls.PageRange class with the specified first and last pages.

Declaration
public PageRange(int pageFrom, int pageTo)
Parameters
System.Int32 pageFrom

The first page of the range.

System.Int32 pageTo

The last page of the range.

Properties

PageFrom

Gets or sets the page number of the first page in the range.

Declaration
public int PageFrom { get; set; }
Property Value
System.Int32

The 1-based page number of the first page in the range.

PageTo

Gets or sets the page number of the last page in the range.

Declaration
public int PageTo { get; set; }
Property Value
System.Int32

The 1-based page number of the last page in the range.

Methods

Equals(Object)

Tests whether an object of unknown type is equal to this System.Windows.Controls.PageRange.

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

The object tested.

Returns
System.Boolean

true if the object is of type System.Windows.Controls.PageRange and is equal to this System.Windows.Controls.PageRange; otherwise, false.

Overrides
System.ValueType.Equals(System.Object)

Equals(PageRange)

Tests whether a System.Windows.Controls.PageRange is equal to this System.Windows.Controls.PageRange.

Declaration
public bool Equals(PageRange pageRange)
Parameters
PageRange pageRange

The System.Windows.Controls.PageRange tested.

Returns
System.Boolean

true if the two System.Windows.Controls.PageRange objects are equal; otherwise, false.

GetHashCode()

Gets the hash code value for the System.Windows.Controls.PageRange.

Declaration
public override int GetHashCode()
Returns
System.Int32

The hash code value for the System.Windows.Controls.PageRange.

Overrides
System.ValueType.GetHashCode()

ToString()

Gets a string representation of the range.

Declaration
public override string ToString()
Returns
System.String

A string that represents the range of pages in the format "System.Windows.Controls.PageRange.PageFrom-System.Windows.Controls.PageRange.PageTo".

Overrides
System.ValueType.ToString()

Operators

Equality(PageRange, PageRange)

Defines the "==" operator for testing whether two specified System.Windows.Controls.PageRange objects are equal.

Declaration
public static bool operator ==(PageRange pr1, PageRange pr2)
Parameters
PageRange pr1

The first System.Windows.Controls.PageRange.

PageRange pr2

The second System.Windows.Controls.PageRange.

Returns
System.Boolean

true if the two System.Windows.Controls.PageRange objects are equal; otherwise, false.

Inequality(PageRange, PageRange)

Defines the "!=" operator for testing whether two specified System.Windows.Controls.PageRange objects are not equal.

Declaration
public static bool operator !=(PageRange pr1, PageRange pr2)
Parameters
PageRange pr1

The first System.Windows.Controls.PageRange.

PageRange pr2

The second System.Windows.Controls.PageRange.

Returns
System.Boolean

true if the two System.Windows.Controls.PageRange objects are not equal; otherwise, false.

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.