New to Telerik UI for WinForms? Start a free 30-day trial

Enumerates checked descendants of a root node in breadth-first order, including descendants of unchecked nodes.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CheckedTreeNodeEnumerator : IDisposable, IEnumerator, IEnumerable

Inheritance: objectCheckedTreeNodeEnumerator

Implements: IDisposableIEnumerableIEnumerator

Constructors

Creates an enumerator that starts with the root node's children; the root itself is not enumerated.

C#
public CheckedTreeNodeEnumerator(RadTreeNode rootNode)
Parameters:rootNodeRadTreeNode

The node whose descendants are traversed.

Properties

Gets the most recently yielded checked descendant.

C#
public RadTreeNode Current { get; }

Methods

Clears the traversal state and releases the root node reference.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Creates a new enumerator over checked descendants of the same root node.

C#
public IEnumerator<RadTreeNode> GetEnumerator()
Returns:

IEnumerator<RadTreeNode>

An enumerator that visits checked descendants in breadth-first order.

Advances to the next checked descendant, continuing through unchecked nodes to search their children.

C#
public bool MoveNext()
Returns:

bool

true if another checked descendant was found; otherwise, false.

Implements: IEnumerator.MoveNext()

Restarts traversal from the root node's children.

C#
public void Reset()

Implements: IEnumerator.Reset()