Provides read-only access to checked descendants of a root node.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CheckedTreeNodeCollection : IReadOnlyCollection<RadTreeNode>, IEnumerable
Inheritance: objectCheckedTreeNodeCollection
Implements:
Constructors
Creates a checked-node view rooted at the specified node. The root itself is not included.
public CheckedTreeNodeCollection(RadTreeNode rootNode)
The node whose descendants are searched.
Properties
Gets the number of checked descendants beneath the root node.
public int Count { get; }
Implements:
The count is computed by traversing the descendants each time it is read.
Gets the checked descendant at the specified position in traversal order.
public RadTreeNode this[int index] { get; }
The zero-based position among checked descendants.
Property Value:The checked descendant at index.
Implements:
Methods
Determines whether the specified node appears among the checked descendants.
public bool Contains(RadTreeNode value)
The node to search for.
Returns:true if the node is checked and is a descendant of the root; otherwise, false.
Implements:
Copies the checked descendants to an array in traversal order.
public void CopyTo(RadTreeNode[] array, int index)
The destination array.
indexintThe zero-based destination index at which copying begins.
Implements:
Creates an enumerator over the checked descendants.
public IEnumerator<RadTreeNode> GetEnumerator()
IEnumerator<RadTreeNode>
An enumerator that visits checked descendants in breadth-first order.
Gets the checked descendant at the specified traversal position.
protected virtual RadTreeNode GetNodeByIndex(int index)
The zero-based position among checked descendants.
Returns:The checked descendant at index.
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.
public int IndexOf(RadTreeNode value)
The node to locate.
Returns:The position of the node, or -1 if it is not a checked descendant.
Implements: