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

Provides read-only access to checked descendants of a root node.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CheckedTreeNodeCollection : IReadOnlyCollection<RadTreeNode>, IEnumerable

Inheritance: objectCheckedTreeNodeCollection

Implements: IEnumerableIReadOnlyCollection<RadTreeNode>

Constructors

Creates a checked-node view rooted at the specified node. The root itself is not included.

C#
public CheckedTreeNodeCollection(RadTreeNode rootNode)
Parameters:rootNodeRadTreeNode

The node whose descendants are searched.

Properties

Gets the number of checked descendants beneath the root node.

C#
public int Count { get; }

Implements: IReadOnlyCollection<RadTreeNode>.Count

The count is computed by traversing the descendants each time it is read.

Gets the checked descendant at the specified position in traversal order.

C#
public RadTreeNode this[int index] { get; }
Parameters:indexint

The zero-based position among checked descendants.

Property Value:

The checked descendant at index.

Implements: IReadOnlyCollection<RadTreeNode>.this[int]

Methods

Determines whether the specified node appears among the checked descendants.

C#
public bool Contains(RadTreeNode value)
Parameters:valueRadTreeNode

The node to search for.

Returns:

bool

true if the node is checked and is a descendant of the root; otherwise, false.

Implements: IReadOnlyCollection<RadTreeNode>.Contains(RadTreeNode)

Copies the checked descendants to an array in traversal order.

C#
public void CopyTo(RadTreeNode[] array, int index)
Parameters:arrayRadTreeNode[]

The destination array.

indexint

The zero-based destination index at which copying begins.

Implements: IReadOnlyCollection<RadTreeNode>.CopyTo(RadTreeNode[], int)

Creates an enumerator over the checked descendants.

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

IEnumerator<RadTreeNode>

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

Gets the checked descendant at the specified traversal position.

C#
protected virtual RadTreeNode GetNodeByIndex(int index)
Parameters:indexint

The zero-based position among checked descendants.

Returns:

RadTreeNode

The checked descendant at index.

Exceptions: IndexOutOfRangeException

index is negative or greater than or equal to the number of checked descendants.

Gets the zero-based traversal position of the specified checked descendant.

C#
public int IndexOf(RadTreeNode value)
Parameters:valueRadTreeNode

The node to locate.

Returns:

int

The position of the node, or -1 if it is not a checked descendant.

Implements: IReadOnlyCollection<RadTreeNode>.IndexOf(RadTreeNode)