TreeNodeView
Provides the mutable child-node list and its current sorted or filtered view for a tree node.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class TreeNodeView : IEnumerable
Inheritance: objectTreeNodeView
Implements:
Constructors
Creates a node view backed by the specified node's child collection.
public TreeNodeView(RadTreeNode owner)
The node whose children are exposed by this view.
Properties
Gets the number of nodes currently present in the sorted or filtered view.
public int Count { get; }
Gets whether the backing child collection is empty, regardless of filtering.
protected bool IsEmpty { get; }
Gets whether the view is read-only; it returns false because this list supports node changes.
public bool IsReadOnly { get; }
Gets or replaces a node at an index in the current view.
public RadTreeNode this[int index] { get; set; }
The zero-based index in the current view.
Property Value:The node at the specified view position.
Methods
Adds a node to the backing child collection; the active filter controls whether it appears in the current view.
Removes all nodes from the backing child collection and its current view.
public void Clear()
Determines whether a node is present in the current view.
Copies the current view, in its current order, into an array.
public void CopyTo(RadTreeNode[] array, int arrayIndex)
The destination array.
arrayIndexintThe zero-based destination index at which copying begins.
Creates an enumerator over the current sorted or filtered view.
public IEnumerator<RadTreeNode> GetEnumerator()
IEnumerator<RadTreeNode>
An enumerator for the current view order.
Creates an enumerator that supports forward and backward traversal of the current view.
public ITreeNodeEnumerator GetNodeEnumerator()
An enumerator for the current view.
In a sorted view, the first call to MoveNext() skips the first node.
Creates an enumerator with the specified view entry as its current node.
public ITreeNodeEnumerator GetNodeEnumerator(int position)
The zero-based index of the entry to select.
Returns:An enumerator for the current view.
When the view is sorted, advancing the returned enumerator with MoveNext() or MovePrev() throws InvalidCastException.
Creates an enumerator positioned at the specified node when it is present in the current view.
public ITreeNodeEnumerator GetNodeEnumerator(RadTreeNode node)
The node to select as the current entry.
Returns:An enumerator for the current view.
Gets a node's index in the current view, which may differ from its position in the backing collection.
public int IndexOf(RadTreeNode item)
The node to locate.
Returns:The node's index in the current view, or -1 if it is not present in that view.
Inserts a node into the backing child collection; active sort and filter descriptors determine its view position and visibility.
public void Insert(int index, RadTreeNode item)
The insertion index in the backing child collection.
itemRadTreeNodeThe node to insert.
Removes a node from the backing child collection if it is present in the current view.
Removes the node at the specified index in the current view from the backing child collection.