WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeNodeAdvCollection

    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.OnCollectionChanging()
    ArrayListExt.OnItemPropertyChanged(Object, SyncfusionPropertyChangedEventArgs)
    ArrayListExt.ReleaseHandler(Object)
    ArrayListExt.AddHandlers(Object)
    ArrayListExt.RaiseCollectionChanged(CollectionChangeEventArgs)
    ArrayListExt.Add(Object)
    ArrayListExt.Insert(Int32, Object)
    ArrayListExt.InsertRange(Int32, ICollection)
    ArrayListExt.Clear()
    ArrayListExt.RemoveAt(Int32)
    ArrayListExt.RemoveRange(Int32, Int32)
    ArrayListExt.Sort(Int32, Int32, IComparer)
    ArrayListExt.Reverse(Int32, Int32)
    ArrayListExt.Move(Int32, Int32, Int32)
    ArrayListExt.SuspendEvents()
    ArrayListExt.ResumeEvents(Boolean)
    ArrayListExt.ForceReadOnly
    ArrayListExt.ForceFixedSize
    ArrayListExt.IsFixedSize
    ArrayListExt.IsReadOnly
    ArrayListExt.IsCollectionChangedEventSuspended
    ArrayListExt.CollectionChanged
    ArrayListExt.ItemPropertyChanged
    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.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.FixedSize(System.Collections.IList)
    System.Collections.ArrayList.FixedSize(System.Collections.ArrayList)
    System.Collections.ArrayList.GetEnumerator()
    System.Collections.ArrayList.GetEnumerator(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.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.IList)
    System.Collections.ArrayList.ReadOnly(System.Collections.ArrayList)
    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.GetRange(System.Int32, System.Int32)
    System.Collections.ArrayList.Sort(System.Collections.IComparer)
    System.Collections.ArrayList.Synchronized(System.Collections.IList)
    System.Collections.ArrayList.Synchronized(System.Collections.ArrayList)
    System.Collections.ArrayList.ToArray()
    System.Collections.ArrayList.ToArray(System.Type)
    System.Collections.ArrayList.TrimToSize()
    System.Collections.ArrayList.Capacity
    System.Collections.ArrayList.Count
    System.Collections.ArrayList.IsSynchronized
    System.Collections.ArrayList.SyncRoot
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Tools.MultiColumnTreeView
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class TreeNodeAdvCollection : ArrayListExt, IList, ICollection, IEnumerable, ICloneable
    Remarks

    The Add, Remove and RemoveAt methods enable you to add and remove individual tree nodes from the collection. You can also use the AddRange(TreeNodeAdv[]) or methods to add or remove all the tree nodes from the collection.

    Constructors

    TreeNodeAdvCollection()

    Initialize a new instance of the TreeNodeAdvCollection class.

    Declaration
    public TreeNodeAdvCollection()

    TreeNodeAdvCollection(TreeNodeAdv)

    Initialize a new instance of the TreeNodeAdvCollection class.

    Declaration
    public TreeNodeAdvCollection(TreeNodeAdv node)
    Parameters
    Type Name Description
    TreeNodeAdv node

    Tree node

    Fields

    nodeList

    Represents a collection which contains all level of nodes.

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

    Properties

    Item[Int32]

    Gets or sets the specified index location in the collection of the TreeNodeAdv.

    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.

    Remarks

    In C#, this property is the indexer for the TreeNodeAdvCollection class.

    Parent

    Gets the parent node.

    Declaration
    protected TreeNodeAdv Parent { get; }
    Property Value
    Type Description
    TreeNodeAdv
    Remarks

    If node is NULL then we have detached nodes collection.

    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.

    Add(String)

    Adds a TreeNodeAdv to the collection.

    Declaration
    public virtual TreeNodeAdv Add(string name)
    Parameters
    Type Name Description
    System.String name

    It contains string value.

    Returns
    Type Description
    TreeNodeAdv

    Returns the node.

    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.

    Contains(TreeNodeAdv)

    Check whether the TreeNodeAdvCollection contains the TreeNodeAdv.

    Declaration
    public bool Contains(TreeNodeAdv node)
    Parameters
    Type Name Description
    TreeNodeAdv node

    The node instance.

    Returns
    Type Description
    System.Boolean

    IndexOf(TreeNodeAdv)

    Returns the index of the TreeNodeAdv.

    Declaration
    public int IndexOf(TreeNodeAdv node)
    Parameters
    Type Name Description
    TreeNodeAdv node

    The TreeNodeAdv instance.

    Returns
    Type Description
    System.Int32

    Insert(Int32, TreeNodeAdv)

    Insert the TreeNodeAdv in specified index.

    Declaration
    public void Insert(int index, TreeNodeAdv node)
    Parameters
    Type Name Description
    System.Int32 index

    The index which needs to insert the TreeNodeAdv.

    TreeNodeAdv node

    The TreeNodeAdv instance.

    OnCollectionChanged(CollectionChangeEventArgs)

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

    RaiseBeforeRemoving(CollectionChangeEventArgs)

    Method raise event is collection does not have set property value set to True.

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

    Collection changes.

    Remove(TreeNodeAdv)

    Removes a TreeNodeAdv from the collection.

    Declaration
    public void Remove(TreeNodeAdv node)
    Parameters
    Type Name Description
    TreeNodeAdv node

    Remove the node.

    ResetParent()

    Reset collection parent to NULL value.

    Declaration
    protected virtual void ResetParent()

    SetParent(TreeNodeAdv)

    Method change parent of the collection.

    Declaration
    protected virtual void SetParent(TreeNodeAdv nodeAdv)
    Parameters
    Type Name Description
    TreeNodeAdv nodeAdv

    Tree node

    Sort()

    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 when the value is being removed from the TreeNodeAdv collection.

    Declaration
    public event CollectionChangeEventHandler BeforeRemoving
    Event Type
    Type Description
    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 - 2023 Syncfusion Inc. All Rights Reserved