menu

WinForms

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

    Show / Hide Table of Contents

    Class TreeNodeAdvCollection

    Represents a collection of TreeNodeAdv objects.

    Inheritance
    System.Object
    System.Collections.ArrayList
    ArrayListExt
    TreeNodeAdvCollection
    Implements
    System.Collections.IList
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    Inherited Members
    ArrayListExt.Add(Object)
    ArrayListExt.AddHandlers(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.OnCollectionChanging()
    ArrayListExt.OnItemPropertyChanged(Object, SyncfusionPropertyChangedEventArgs)
    ArrayListExt.RaiseCollectionChanged(CollectionChangeEventArgs)
    ArrayListExt.ReleaseHandler(Object)
    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.Clone()
    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.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 TreeNodeAdvCollection : ArrayListExt, IList, ICollection, IEnumerable, ICloneable
    Remarks

    The TreeNodeAdvCollection is used to store and manage a collection of TreeNodeAdv objects. Add(TreeNodeAdv), and RemoveAt(Int32) methods enable you to add and remove individual tree nodes from the collection. You can also use the AddRange(TreeNodeAdv[]) or Clear() methods to add or remove all the tree nodes from the collection.

    Constructors

    TreeNodeAdvCollection()

    Initialize a new instance of the TreeNodeAdv class.

    Declaration
    public TreeNodeAdvCollection()

    Fields

    nodeList

    Represents a collection which contains all level of nodes.

    Declaration
    protected List<TreeNodeAdv> nodeList
    Field Value
    Type
    System.Collections.Generic.List<TreeNodeAdv>

    Properties

    Item[Int32]

    Gets or sets a reference to the TreeNodeAdv at the specified index location in the collection. In C#, this property is the indexer for the TreeNodeAdvCollection class.

    Declaration
    public TreeNodeAdv this[int index] { get; set; }
    Parameters
    Type Name Description
    System.Int32 index

    The location of the TreeNodeAdv in the collection.

    Property Value
    Type Description
    TreeNodeAdv

    The reference to the TreeNodeAdv.

    Methods

    Add(TreeNodeAdv)

    Adds a TreeNodeAdv to the collection.

    Declaration
    public virtual int Add(TreeNodeAdv node)
    Parameters
    Type Name Description
    TreeNodeAdv node

    The TreeNodeAdv to add.

    Returns
    Type Description
    System.Int32

    The position of the added node in the list.

    AddRange(TreeNodeAdv[])

    Adds an array of TreeNodeAdv objects to the collection.

    Declaration
    public void AddRange(TreeNodeAdv[] items)
    Parameters
    Type Name Description
    TreeNodeAdv[] items

    An array of TreeNodeAdv objects to add to the collection.

    OnBeforeRemoving(Int32)

    Declaration
    protected virtual void OnBeforeRemoving(int index)
    Parameters
    Type Name Description
    System.Int32 index

    OnCollectionChanged(CollectionChangeEventArgs)

    Declaration
    protected override void OnCollectionChanged(CollectionChangeEventArgs args)
    Parameters
    Type Name Description
    System.ComponentModel.CollectionChangeEventArgs args
    Overrides
    ArrayListExt.OnCollectionChanged(CollectionChangeEventArgs)

    RaiseBeforeRemoving(CollectionChangeEventArgs)

    Declaration
    protected void RaiseBeforeRemoving(CollectionChangeEventArgs e)
    Parameters
    Type Name Description
    System.ComponentModel.CollectionChangeEventArgs e

    RemoveAt(Int32)

    Overridden. Removes the element at the specified index of the TreeNodeAdvCollection.

    Declaration
    public override void RemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The zero-based index of the element to remove.

    Overrides
    ArrayListExt.RemoveAt(Int32)

    Sort()

    Overridden. Sorts the elements in the entire TreeNodeAdvCollection.

    Declaration
    public override void Sort()
    Overrides
    System.Collections.ArrayList.Sort()

    Sort(SortOrder)

    Sorts the collection using the specified sort order.

    Declaration
    public virtual void Sort(SortOrder order)
    Parameters
    Type Name Description
    System.Windows.Forms.SortOrder order

    One of the System.Windows.Forms.SortOrder entries.

    Events

    BeforeRemoving

    Occurs before a removing the TreeNodeAdv from TreeNodeAdvCollection.

    Declaration
    public event CollectionChangeEventHandler BeforeRemoving
    Event Type
    Type
    System.ComponentModel.CollectionChangeEventHandler

    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