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

Represents the direct child nodes owned by a RadTreeNode.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadTreeNodeCollection : NotifyCollection<RadTreeNode>, IList, ICollection, IEnumerable, INotifyCollectionChanged, INotifyPropertyChanged

Inheritance: objectCollection<RadTreeNode>NotifyCollection<RadTreeNode>RadTreeNodeCollection

Implements: ICollectionIEnumerableIListINotifyCollectionChangedINotifyPropertyChanged

Inherited Members NotifyCollection<RadTreeNode>.EmptyNotifyCollection<RadTreeNode>.Move(int, int)NotifyCollection<RadTreeNode>.AddRange(params RadTreeNode[])NotifyCollection<RadTreeNode>.AddRange(IEnumerable<RadTreeNode>)NotifyCollection<RadTreeNode>.BeginUpdate()NotifyCollection<RadTreeNode>.EndUpdate()NotifyCollection<RadTreeNode>.EndUpdate(bool)NotifyCollection<RadTreeNode>.DeferRefresh()NotifyCollection<RadTreeNode>.MoveItem(int, int)NotifyCollection<RadTreeNode>.CreateEventArguments(NotifyCollectionChangedAction)NotifyCollection<RadTreeNode>.CreateEventArguments(NotifyCollectionChangedAction, object, int)NotifyCollection<RadTreeNode>.CreateEventArguments(NotifyCollectionChangedAction, object, object, int)NotifyCollection<RadTreeNode>.OnPropertyChanged(PropertyChangedEventArgs)NotifyCollection<RadTreeNode>.OnPropertyChanged(string)NotifyCollection<RadTreeNode>.VersionNotifyCollection<RadTreeNode>.SuspendedNotifyCollection<RadTreeNode>.CollectionChangedNotifyCollection<RadTreeNode>.PropertyChangedCollection<RadTreeNode>.Add(RadTreeNode)Collection<RadTreeNode>.Clear()Collection<RadTreeNode>.CopyTo(RadTreeNode[], int)Collection<RadTreeNode>.Contains(RadTreeNode)Collection<RadTreeNode>.GetEnumerator()Collection<RadTreeNode>.IndexOf(RadTreeNode)Collection<RadTreeNode>.Insert(int, RadTreeNode)Collection<RadTreeNode>.Remove(RadTreeNode)Collection<RadTreeNode>.RemoveAt(int)Collection<RadTreeNode>.CountCollection<RadTreeNode>.ItemsCollection<RadTreeNode>.this[int]...

Properties

Gets whether the underlying node view contains no children.

C#
protected bool IsEmpty { get; }

Gets whether the bound data level has changed since this collection's version was synchronized.

C#
protected bool NeedsRefresh { get; }

Gets the owner.

C#
[Browsable(false)]
public RadTreeNode Owner { get; }
Property Value:

The owner.

Gets the RadTreeNode with the specified name.

C#
public RadTreeNode this[string name] { get; }
Parameters:namestring

Gets the tree view.

C#
public RadTreeView TreeView { get; }
Property Value:

The tree view.

Methods

Adds the specified text.

C#
public virtual RadTreeNode Add(string text, int imageIndex)
Parameters:textstring

The text.

imageIndexint

Index of the image.

Returns:

RadTreeNode

Adds the specified key.

C#
public virtual RadTreeNode Add(string key, string text, int imageIndex)
Parameters:keystring

The key.

textstring

The text.

imageIndexint

Index of the image.

Returns:

RadTreeNode

Adds the specified key.

C#
public virtual RadTreeNode Add(string key, string text, string imageKey)
Parameters:keystring

The key.

textstring

The text.

imageKeystring

The image key.

Returns:

RadTreeNode

Adds the specified text.

C#
public virtual RadTreeNode Add(string text, string imageKey)
Parameters:textstring

The text.

imageKeystring

The image key.

Returns:

RadTreeNode

Adds the tree node with specified text.

C#
public RadTreeNode Add(string text)
Parameters:textstring

The text.

Returns:

RadTreeNode

Detaches all child nodes and clears the collection if tree-view preprocessing permits the operation.

C#
protected override void ClearItems()

Overrides: NotifyCollection<RadTreeNode>.ClearItems()

Determines whether [contains] [the specified name].

C#
public bool Contains(string name)
Parameters:namestring

The name.

Returns:

bool

true if [contains] [the specified name]; otherwise, false.

Creates an enumerator for this collection's current node order.

C#
public ITreeNodeEnumerator GetNodeEnumerator()
Returns:

ITreeNodeEnumerator

An enumerator that supports forward and backward movement through the collection.

Creates an enumerator positioned at the specified node index.

C#
public ITreeNodeEnumerator GetNodeEnumerator(int position)
Parameters:positionint

The zero-based index of the node at which to position the enumerator.

Returns:

ITreeNodeEnumerator

An enumerator for this collection.

Creates an enumerator positioned at the specified node.

C#
public ITreeNodeEnumerator GetNodeEnumerator(RadTreeNode node)
Parameters:nodeRadTreeNode

The node at which to position the enumerator.

Returns:

ITreeNodeEnumerator

An enumerator for this collection.

Indexes the of.

C#
public int IndexOf(string name)
Parameters:namestring

The name.

Returns:

int

Associates a node with its owner and inserts it after tree-view preprocessing accepts the operation.

C#
protected override void InsertItem(int index, RadTreeNode item)
Parameters:indexint

The zero-based insertion position.

itemRadTreeNode

The node to insert.

Exceptions: ArgumentException

The node is already associated with a tree view and the owner is not data-bound.

Overrides: NotifyCollection<RadTreeNode>.InsertItem(int, RadTreeNode)

Updates the owning tree view and raises node notifications after a collection change.

C#
protected override void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Parameters:argsNotifyCollectionChangedEventArgs

The action and item data for the collection change.

Overrides: NotifyCollection<RadTreeNode>.OnCollectionChanged(NotifyCollectionChangedEventArgs)

Refreshes this instance.

C#
public void Refresh()

Removes the specified name.

C#
public void Remove(string name)
Parameters:namestring

The 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.

C#
protected override void RemoveItem(int index)
Parameters:indexint

The zero-based position of the node to remove.

Overrides: NotifyCollection<RadTreeNode>.RemoveItem(int)

Marks the stored data-level version as unsynchronized.

C#
protected void ResetVersion()

Replaces a node after tree-view preprocessing accepts the operation and assigns the new node's owner.

C#
protected override void SetItem(int index, RadTreeNode item)
Parameters:indexint

The zero-based position to replace.

itemRadTreeNode

The replacement node.

Overrides: NotifyCollection<RadTreeNode>.SetItem(int, RadTreeNode)

Stores the current bound data-level version for the owner node.

C#
protected void SyncVersion()

Refreshes the node view and invalidates its owner unless collection notifications are suspended.

C#
protected void Update()