Class SelectedNodesCollection
Represents the list of TreeNodeAdvs currently selected in a TreeViewAdv.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.MultiColumnTreeView
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class SelectedNodesCollection : ArrayListExt, IList, ICollection, IEnumerable, ICloneable
Remarks
This collection contains references to all selected nodes in the TreeViewAdv. Adding a TreeNodeAdv to this collection will select the node. Removing a node from this collection will deselect the node.
Whenever a node is selected/deselected, either by user action or in code, it is automatically added/removed from the SelectedNodes collection.
This collection is read-only, which means you can add and remove elements but cannot change the existing elements.
You can listen to new selections being added to this collection using the collection's CollectionChanged event handler or listen to the TreeViewAdv's BeforeSelect event.
Constructors
SelectedNodesCollection()
Initialize a new instance of the SelectedNodesCollection class.
Declaration
public SelectedNodesCollection()
Remarks
This collection is always read-only. But you can still add/remove nodes.
Properties
Item[Int32]
Gets a node at the specified index.
Declaration
public TreeNodeAdv this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | Tree node index |
Property Value
Type |
---|
TreeNodeAdv |
Remarks
Note that you cannot change the entry at a particular index.
Methods
AddHandlers(Object)
Declaration
protected override void AddHandlers(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item |
Overrides
Clone()
Creates a shallow copy of the TreeNodeAdvCollection.
Declaration
public override object Clone()
Returns
Type | Description |
---|---|
System.Object | A shallow copy of the TreeNodeAdvCollection. |