Traverses the current node view in either direction.
When the view is sorted, a default enumerator's first MoveNext() skips the first node after construction or reset. An enumerator created with an index cannot be advanced in a sorted view and throws InvalidCastException.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TreeNodeView.TreeNodeEnumerator : ITreeNodeEnumerator, IDisposable, IEnumerator
Inheritance: objectTreeNodeView.TreeNodeEnumerator
Implements:
Constructors
Creates an enumerator positioned at an entry in the current view.
public TreeNodeEnumerator(TreeNodeView items, int position)
The view to traverse.
positionintThe zero-based position to select as the current entry.
In a sorted view, calling MoveNext() or MovePrev() on the returned enumerator throws InvalidCastException.
Creates an enumerator positioned at the specified node when it is present in the current view.
public TreeNodeEnumerator(TreeNodeView items, RadTreeNode node)
The view to traverse.
nodeRadTreeNodeThe node to select as the current entry.
Creates an enumerator for the view's current order.
public TreeNodeEnumerator(TreeNodeView items)
The view to traverse.
In a sorted view, the first call to MoveNext() advances past the first node.
Properties
Gets the current node, or null when the enumerator has no current entry.
public RadTreeNode Current { get; }
Methods
Releases the references held by this enumerator.
public void Dispose()
Implements: