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

Represents the hierarchy row traverser.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class HierarchyRowTraverser : ITraverser<GridViewRowInfo>, IDisposable, IEnumerator, IEnumerable

Inheritance: objectHierarchyRowTraverser

Derived Classes: GroupRowTraverser

Implements: IDisposableIEnumerableIEnumeratorITraverser<GridViewRowInfo>

Constructors

Initializes a new instance of the HierarchyRowTraverser class.

C#
public HierarchyRowTraverser(GridViewRowInfo hierarchyRow)
Parameters:hierarchyRowGridViewRowInfo

The hierarchy row.

Initializes a new instance of the HierarchyRowTraverser class.

C#
public HierarchyRowTraverser(HierarchyRowTraverser traverser)
Parameters:traverserHierarchyRowTraverser

The traverser.

Initializes a new instance of the HierarchyRowTraverser class.

C#
public HierarchyRowTraverser(HierarchyRowTraverser.HierarchyRowTraverserPosition position)
Parameters:positionHierarchyRowTraverser.HierarchyRowTraverserPosition

The position.

Properties

Gets the element in the collection at the current position of the enumerator.

C#
public GridViewRowInfo Current { get; }
Property Value:

The element in the collection at the current position of the enumerator.

Gets the hierarchy row.

C#
public GridViewRowInfo HierarchyRow { get; }
Property Value:

The hierarchy row.

Gets the index.

C#
protected int Index { get; }
Property Value:

The index.

Gets or sets the position.

C#
public HierarchyRowTraverser.HierarchyRowTraverserPosition Position { get; set; }
Property Value:

The position.

Gets or sets whether to process the hidden rows.

C#
public bool ProcessHiddenRows { get; set; }
Property Value:

The process hidden rows.

Gets the rows count.

C#
protected virtual int RowsCount { get; }
Property Value:

The rows count.

Methods

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

C#
public virtual void Dispose()

Implements: IDisposable.Dispose()

Returns an enumerator that iterates through a collection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements: IEnumerable.GetEnumerator()

Advances the enumerator to the next element of the collection.

C#
public bool MoveNext()
Returns:

bool

true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection.

Exceptions:

InvalidOperationException

The collection was modified after the enumerator was created.

Implements: IEnumerator.MoveNext()

Moves the previous.

C#
public bool MovePrevious()
Returns:

bool

Implements: ITraverser<GridViewRowInfo>.MovePrevious()

Moves to end.

C#
public bool MoveToEnd()
Returns:

bool

Implements: ITraverser<GridViewRowInfo>.MoveToEnd()

Called when the row is visible.

C#
protected virtual bool OnRowVisible()
Returns:

bool

Sets the enumerator to its initial position, which is before the first element in the collection.

C#
public void Reset()
Exceptions:

InvalidOperationException

The collection was modified after the enumerator was created.

Implements: IEnumerator.Reset()

Sets the current.

C#
protected virtual void SetCurrent()

Events

Occurs when the row is visible.

C#
public event RowEnumeratorEventHandler RowVisible