New to Telerik UI for WinFormsStart a free 30-day trial

PageRange

Struct

Specifies a range of pages.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

C#
public struct PageRange

Constructors

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

C#
public PageRange(int pageFrom, int pageTo)
Parameters:pageFromint

The first page of the range.

pageToint

The last page of the range.

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

C#
public PageRange(int page)
Parameters:pageint

The page that is printed or processed.

Properties

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

C#
public int PageFrom { get; set; }
Property Value:

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

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

C#
public int PageTo { get; set; }
Property Value:

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

Methods

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

C#
public override bool Equals(object obj)
Parameters:objobject

The object tested.

Returns:

bool

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

Overrides: ValueType.Equals(object)

Tests whether a PageRange is equal to this PageRange.

C#
public bool Equals(PageRange pageRange)
Parameters:pageRangePageRange

The PageRange tested.

Returns:

bool

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

Gets the hash code value for the PageRange.

C#
public override int GetHashCode()
Returns:

int

The hash code value for the PageRange.

Overrides: ValueType.GetHashCode()

Gets a string representation of the range.

C#
public override string ToString()
Returns:

string

A string that represents the range of pages in the format "PageFrom-PageTo".

Overrides: ValueType.ToString()

Operators

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

C#
public static bool operator !=(PageRange pr1, PageRange pr2)
Parameters:pr1PageRange

The first PageRange.

pr2PageRange

The second PageRange.

Returns:

bool

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

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

C#
public static bool operator ==(PageRange pr1, PageRange pr2)
Parameters:pr1PageRange

The first PageRange.

pr2PageRange

The second PageRange.

Returns:

bool

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