Class TreeNodeAdvCollection
Represents a collection of TreeNodeAdv objects.
Implements
Inherited Members
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),
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
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
Sort()
Overridden. Sorts the elements in the entire TreeNodeAdvCollection.
Declaration
public override void Sort()
Overrides
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 |