Class TreeNodeAdvCollection
Represents a collection of TreeNodeAdv objects.
Implements
Inherited Members
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
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 |
---|
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 |
---|
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 |
---|
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 |
---|
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
RaiseBeforeRemoving(CollectionChangeEventArgs)
Method raise event is collection does not have
set 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
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 |
---|
System.ComponentModel.CollectionChangeEventHandler |