menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class SelectedNodesCollection - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class SelectedNodesCollection

    Represents the list of TreeNodeAdv is currently selected in a TreeViewAdv.

    Inheritance
    System.Object
    System.Collections.ArrayList
    ArrayListExt
    SelectedNodesCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    Inherited Members
    ArrayListExt.Add(Object)
    ArrayListExt.Clear()
    ArrayListExt.CollectionChanged
    ArrayListExt.ForceFixedSize
    ArrayListExt.ForceReadOnly
    ArrayListExt.Insert(Int32, Object)
    ArrayListExt.InsertRange(Int32, ICollection)
    ArrayListExt.IsCollectionChangedEventSuspended
    ArrayListExt.IsFixedSize
    ArrayListExt.IsReadOnly
    ArrayListExt.ItemPropertyChanged
    ArrayListExt.Move(Int32, Int32, Int32)
    ArrayListExt.OnCollectionChanged(CollectionChangeEventArgs)
    ArrayListExt.OnCollectionChanging()
    ArrayListExt.OnItemPropertyChanged(Object, SyncfusionPropertyChangedEventArgs)
    ArrayListExt.RaiseCollectionChanged(CollectionChangeEventArgs)
    ArrayListExt.ReleaseHandler(Object)
    ArrayListExt.RemoveAt(Int32)
    ArrayListExt.RemoveRange(Int32, Int32)
    ArrayListExt.ResumeEvents(Boolean)
    ArrayListExt.Reverse(Int32, Int32)
    ArrayListExt.Sort(Int32, Int32, IComparer)
    ArrayListExt.SuspendEvents()
    System.Collections.ArrayList.Adapter(System.Collections.IList)
    System.Collections.ArrayList.AddRange(System.Collections.ICollection)
    System.Collections.ArrayList.BinarySearch(System.Int32, System.Int32, System.Object, System.Collections.IComparer)
    System.Collections.ArrayList.BinarySearch(System.Object)
    System.Collections.ArrayList.BinarySearch(System.Object, System.Collections.IComparer)
    System.Collections.ArrayList.Capacity
    System.Collections.ArrayList.Contains(System.Object)
    System.Collections.ArrayList.CopyTo(System.Array)
    System.Collections.ArrayList.CopyTo(System.Array, System.Int32)
    System.Collections.ArrayList.CopyTo(System.Int32, System.Array, System.Int32, System.Int32)
    System.Collections.ArrayList.Count
    System.Collections.ArrayList.FixedSize(System.Collections.ArrayList)
    System.Collections.ArrayList.FixedSize(System.Collections.IList)
    System.Collections.ArrayList.GetEnumerator()
    System.Collections.ArrayList.GetEnumerator(System.Int32, System.Int32)
    System.Collections.ArrayList.GetRange(System.Int32, System.Int32)
    System.Collections.ArrayList.IndexOf(System.Object)
    System.Collections.ArrayList.IndexOf(System.Object, System.Int32)
    System.Collections.ArrayList.IndexOf(System.Object, System.Int32, System.Int32)
    System.Collections.ArrayList.IsSynchronized
    System.Collections.ArrayList.LastIndexOf(System.Object)
    System.Collections.ArrayList.LastIndexOf(System.Object, System.Int32)
    System.Collections.ArrayList.LastIndexOf(System.Object, System.Int32, System.Int32)
    System.Collections.ArrayList.ReadOnly(System.Collections.ArrayList)
    System.Collections.ArrayList.ReadOnly(System.Collections.IList)
    System.Collections.ArrayList.Remove(System.Object)
    System.Collections.ArrayList.Repeat(System.Object, System.Int32)
    System.Collections.ArrayList.Reverse()
    System.Collections.ArrayList.SetRange(System.Int32, System.Collections.ICollection)
    System.Collections.ArrayList.Sort()
    System.Collections.ArrayList.Sort(System.Collections.IComparer)
    System.Collections.ArrayList.Synchronized(System.Collections.ArrayList)
    System.Collections.ArrayList.Synchronized(System.Collections.IList)
    System.Collections.ArrayList.SyncRoot
    System.Collections.ArrayList.ToArray()
    System.Collections.ArrayList.ToArray(System.Type)
    System.Collections.ArrayList.TrimToSize()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms.Tools
    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 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
    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
    ArrayListExt.AddHandlers(Object)

    Clone()

    Overridden. Creates a shallow copy of the TreeNodeAdvCollection.

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object

    A shallow copy of the TreeNodeAdvCollection.

    Overrides
    System.Collections.ArrayList.Clone()

    Implements

    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable

    Extension Methods

    EnumerableExtensions.GetElementType(IEnumerable)
    EnumerableExtensions.GetItemPropertyInfo(IEnumerable)
    FunctionalExtensions.ForEach<T>(IEnumerable, Action<T>)
    FunctionalExtensions.ToList<T>(IEnumerable)
    FunctionalExtensions.MoveTo(IList, Int32, Int32)
    QueryableExtensions.OfQueryable(IEnumerable)
    QueryableExtensions.OfQueryable(IEnumerable, Type)
    QueryableExtensions.GroupByMany<TElement>(IEnumerable, Type, List<Func<TElement, Object>>)
    QueryableExtensions.GroupByMany(IEnumerable, Type, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Dictionary<String, IComparer<Object>>, Func<String, Expression>, String[])
    QueryableExtensions.GroupByMany(IEnumerable, Type, List<SortDescriptor>, Func<String, Expression>, String[])
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved