HierarchicalIndex
Represents the index of a position in a RadDocument.
Definition
Namespace:Telerik.WinForms.Documents
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class HierarchicalIndex : IComparable<HierarchicalIndex>
Inheritance: objectHierarchicalIndex
Implements:
Constructors
Initializes a new instance of the HierarchicalIndex class.
Methods
Compares the current object with another object of the same type.
public int CompareTo(HierarchicalIndex 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:
Gets a layout box by its hierarchical index.
public static LayoutBox GetBoxByHierarchicalIndex(DocumentLayoutBox documentBox, HierarchicalIndex hierarchicalIndex)
The layout box of the parent document.
hierarchicalIndexHierarchicalIndexThe hierarchical index of the layout box.
Returns:The layout box.
Returns a hash code for this instance.
public override int GetHashCode()
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides:
Gets the hierarchical index for a layout box.
public static HierarchicalIndex GetHierarchicalIndexByBox(LayoutBox currentBox, int indexInInline = 0)
A layout box.
indexInInlineintOptional index in case the box is InlineLayoutBox.
Returns:The hierarchical index.
Gets an integer array representing the hierarchical index.
public int[] GetIndexArray()
int[]
An integer array representing the hierarchical index.