Represents the direct child nodes owned by a RadTreeNode.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTreeNodeCollection : NotifyCollection<RadTreeNode>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged
Inheritance: objectCollection<RadTreeNode>NotifyCollection<RadTreeNode>RadTreeNodeCollection
Implements:
Inherited Members
Properties
Gets whether the underlying node view contains no children.
protected bool IsEmpty { get; }
Gets whether the bound data level has changed since this collection's version was synchronized.
protected bool NeedsRefresh { get; }
Gets the owner.
[Browsable(false)]
public RadTreeNode Owner { get; }
The owner.
Gets the RadTreeNode with the specified name.
Gets the tree view.
public RadTreeView TreeView { get; }
The tree view.
Methods
Adds the tree node with specified text.
Detaches all child nodes and clears the collection if tree-view preprocessing permits the operation.
protected override void ClearItems()
Overrides:
Creates an enumerator for this collection's current node order.
public ITreeNodeEnumerator GetNodeEnumerator()
An enumerator that supports forward and backward movement through the collection.
Creates an enumerator positioned at the specified node index.
public ITreeNodeEnumerator GetNodeEnumerator(int position)
The zero-based index of the node at which to position the enumerator.
Returns:An enumerator for this collection.
Creates an enumerator positioned at the specified node.
public ITreeNodeEnumerator GetNodeEnumerator(RadTreeNode node)
The node at which to position the enumerator.
Returns:An enumerator for this collection.
Associates a node with its owner and inserts it after tree-view preprocessing accepts the operation.
protected override void InsertItem(int index, RadTreeNode item)
The zero-based insertion position.
itemRadTreeNodeThe node to insert.
Exceptions: ArgumentExceptionThe node is already associated with a tree view and the owner is not data-bound.
Overrides:
Updates the owning tree view and raises node notifications after a collection change.
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
The action and item data for the collection change.
Overrides:
Refreshes this instance.
public void Refresh()
Removes the specified name.
Allows tree-view preprocessing to cancel removal. For the current node, replacement-selection failure can also prevent removal or remove it without clearing its owner references.
protected override void RemoveItem(int index)
The zero-based position of the node to remove.
Overrides:
Marks the stored data-level version as unsynchronized.
protected void ResetVersion()
Replaces a node after tree-view preprocessing accepts the operation and assigns the new node's owner.
protected override void SetItem(int index, RadTreeNode item)
The zero-based position to replace.
itemRadTreeNodeThe replacement node.
Overrides:
Stores the current bound data-level version for the owner node.
protected void SyncVersion()
Refreshes the node view and invalidates its owner unless collection notifications are suspended.
protected void Update()