Class TreeNodeAdvSubItemCollection
Represents a sub item collection of the TreeNodeAdv objects.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.MultiColumnTreeView
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TreeNodeAdvSubItemCollection : CollectionBase, IList, ICollection, IEnumerable, ICloneable
Constructors
TreeNodeAdvSubItemCollection(TreeNodeAdv)
Initialize a new instance of the TreeNodeAdvSubItemCollection class.
Declaration
public TreeNodeAdvSubItemCollection(TreeNodeAdv node)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdv | node | It contains the node value. |
Properties
Item[Int32]
Gets or sets the collection items by index.
Declaration
public TreeNodeAdvSubItem this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | Treenode index |
Property Value
| Type |
|---|
| TreeNodeAdvSubItem |
TreeNode
Declaration
protected TreeNodeAdv TreeNode { get; }
Property Value
| Type |
|---|
| TreeNodeAdv |
Methods
Add(TreeNodeAdvSubItem)
Adds a TreeNodeAdvSubItem to the collection.
Declaration
public int Add(TreeNodeAdvSubItem subitem)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdvSubItem | subitem | The TreeNodeAdvSubItem to add. |
Returns
| Type | Description |
|---|---|
| System.Int32 | The position of the added subitem in the list. |
AddRange(TreeNodeAdvSubItem[])
Adds an array of TreeNodeAdvSubItem objects to the collection.
Declaration
public void AddRange(TreeNodeAdvSubItem[] subitems)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdvSubItem[] | subitems | An array of TreeNodeAdvSubItem objects to the collection. |
AddRange(ICollection)
Adds a TreeNodeAdvSubItem objects to the collection.
Declaration
public void AddRange(ICollection subitems)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.ICollection | subitems | An array of TreeNodeAdvSubItem objects to the collection. |
Clone()
Returns the cloned TreeNodeAdvSubItemCollection.
Declaration
public TreeNodeAdvSubItemCollection Clone()
Returns
| Type |
|---|
| TreeNodeAdvSubItemCollection |
Contains(TreeNodeAdvSubItem)
Check whether the TreeNodeAdvSubItemcollection contains TreeNodeAdvSubItem
Declaration
public bool Contains(TreeNodeAdvSubItem subitem)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdvSubItem | subitem | The TreeNodeSubItem instance. |
Returns
| Type |
|---|
| System.Boolean |
CreateItem()
Creates a new item of the TreeNodeAdvSubItem colection.
Declaration
public TreeNodeAdvSubItem CreateItem()
Returns
| Type |
|---|
| TreeNodeAdvSubItem |
IndexOf(TreeNodeAdvSubItem)
Returns the index of the TreeNodeAdvSubItem.
Declaration
public int IndexOf(TreeNodeAdvSubItem subitem)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdvSubItem | subitem | The TreeNodeAdvSubItem instance. |
Returns
| Type |
|---|
| System.Int32 |
Insert(Int32, TreeNodeAdvSubItem)
Inserts an items to the list at the specified index.
Declaration
public void Insert(int index, TreeNodeAdvSubItem subitem)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which item should be inserted. |
| TreeNodeAdvSubItem | subitem | An array of TreeNodeAdvSubItem objects to the collection. |
OnClear()
Saves first reference on first SubItem
Declaration
protected override void OnClear()
Overrides
OnClearComplete()
Declaration
protected override void OnClearComplete()
Overrides
OnInsertComplete(Int32, Object)
Declaration
protected override void OnInsertComplete(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |
Overrides
OnRemoveComplete(Int32, Object)
Declaration
protected override void OnRemoveComplete(int index, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | value |
Overrides
OnSetComplete(Int32, Object, Object)
Declaration
protected override void OnSetComplete(int index, object oldValue, object newValue)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| System.Object | oldValue | |
| System.Object | newValue |
Overrides
OnValidate(Object)
Method check correctness of input parameters.
Declaration
protected override void OnValidate(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | value | parameter to check. |
Overrides
Remove(TreeNodeAdvSubItem)
Remove the TreeNodeAdvSubItem objects from the collection.
Declaration
public void Remove(TreeNodeAdvSubItem subitem)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdvSubItem | subitem | An array of TreeNodeAdvSubItem objects to the collection. |
SetParent(TreeNodeAdv)
Declaration
protected void SetParent(TreeNodeAdv node)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeNodeAdv | node |
ToArray()
Create an array of items instead of sizable collection.
Declaration
public TreeNodeAdvSubItem[] ToArray()
Returns
| Type | Description |
|---|---|
| TreeNodeAdvSubItem[] | Copy of items from collection to array. |
Events
CollectionChanged
Occurs when the collection changed from TreeNodeAdv subitem collection.
Declaration
public event CollectionChangeEventHandler CollectionChanged
Event Type
| Type |
|---|
| System.ComponentModel.CollectionChangeEventHandler |
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
| Type |
|---|
| System.Object |