Struct
PageRange

Specifies a range of pages.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

cs-api-definition
public struct PageRange

Constructors

PageRange(int)

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

Declaration

cs-api-definition
public PageRange(int page)

Parameters

page

int

The page that is printed or processed.

PageRange(int, int)

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

Declaration

cs-api-definition
public PageRange(int pageFrom, int pageTo)

Parameters

pageFrom

int

The first page of the range.

pageTo

int

The last page of the range.

Properties

PageFrom

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

Declaration

cs-api-definition
public int PageFrom { get; set; }

Property Value

int

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

cs-api-definition
public int PageTo { get; set; }

Property Value

int

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

Methods

Equals(PageRange)

Tests whether a PageRange is equal to this PageRange.

Declaration

cs-api-definition
public bool Equals(PageRange pageRange)

Parameters

pageRange

PageRange

The PageRange tested.

Returns

bool

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

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Gets the hash code value for the PageRange.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

The hash code value for the PageRange.

Overrides ValueType.GetHashCode()

ToString()

Gets a string representation of the range.

Declaration

cs-api-definition
public override string ToString()

Returns

string

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

Overrides ValueType.ToString()

Operators

operator !=(PageRange, PageRange)

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

Declaration

cs-api-definition
public static bool operator !=(PageRange pr1, PageRange pr2)

Parameters

pr1

PageRange

The first PageRange.

pr2

PageRange

The second PageRange.

Returns

bool

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

operator ==(PageRange, PageRange)

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

Declaration

cs-api-definition
public static bool operator ==(PageRange pr1, PageRange pr2)

Parameters

pr1

PageRange

The first PageRange.

pr2

PageRange

The second PageRange.

Returns

bool

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