Struct PageRange
Specifies a range of pages.
Inherited Members
Namespace: Telerik.WinControls.RichTextEditor.UI
Assembly: Telerik.WinControls.RichTextEditor.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
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
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
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. |