ClassHierarchicalIndex
Represents the index of a position in a RadDocument.
Definition
Namespace:Telerik.Windows.Documents
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class HierarchicalIndex : IComparable<HierarchicalIndex>
Inheritance: objectHierarchicalIndex
Implements:
Constructors
HierarchicalIndex(int[], int)
Initializes a new instance of the HierarchicalIndex class.
Methods
CompareTo(HierarchicalIndex)
Compares the current object with another object of the same type.
Declaration
public int CompareTo(HierarchicalIndex other)
Parameters
other
An object to compare with this object.
Returns
A value that indicates the relative order of the objects being compared. The return value has the following meanings: Value Meaning Less than zero This object is less than the other parameter.Zero This object is equal to other. Greater than zero This object is greater than other.
Implements
Equals(object)
Determines whether the specified object, is equal to this instance.
GetBoxByHierarchicalIndex(DocumentLayoutBox, HierarchicalIndex)
Gets a layout box by its hierarchical index.
Declaration
public static LayoutBox GetBoxByHierarchicalIndex(DocumentLayoutBox documentBox, HierarchicalIndex hierarchicalIndex)
Parameters
documentBox
The layout box of the parent document.
hierarchicalIndex
The hierarchical index of the layout box.
Returns
The layout box.
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
GetHierarchicalIndexByBox(LayoutBox, int)
Gets the hierarchical index for a layout box.
Declaration
public static HierarchicalIndex GetHierarchicalIndexByBox(LayoutBox currentBox, int indexInInline = 0)
Parameters
currentBox
A layout box.
indexInInline
Optional index in case the box is InlineLayoutBox.
Returns
The hierarchical index.
GetIndexArray()
Gets an integer array representing the hierarchical index.
Declaration
public int[] GetIndexArray()
Returns
int[]
An integer array representing the hierarchical index.
ToString()
Returns a string that represents this instance.