TreeNodeCollection Methods
.NET Framework 4.5
The TreeNodeCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add(String) | Adds a new tree node with the specified label text to the end of the current tree node collection. |
|
Add(TreeNode) | Adds a previously created tree node to the end of the tree node collection. |
|
Add(String, String) | Creates a new tree node with the specified key and text, and adds it to the collection. |
|
Add(String, String, Int32) | Creates a tree node with the specified key, text, and image, and adds it to the collection. |
|
Add(String, String, String) | Creates a tree node with the specified key, text, and image, and adds it to the collection. |
|
Add(String, String, Int32, Int32) | Creates a tree node with the specified key, text, and images, and adds it to the collection. |
|
Add(String, String, String, String) | Creates a tree node with the specified key, text, and images, and adds it to the collection. |
|
AddRange | Adds an array of previously created tree nodes to the collection. |
|
Clear | Removes all tree nodes from the collection. |
|
Contains | Determines whether the specified tree node is a member of the collection. |
|
ContainsKey | Determines whether the collection contains a tree node with the specified key. |
|
CopyTo | Copies the entire collection into an existing array at a specified location within the array. |
|
Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
Find | Finds the tree nodes with specified key, optionally searching subnodes. |
|
GetEnumerator | Returns an enumerator that can be used to iterate through the tree node collection. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf | Returns the index of the specified tree node in the collection. |
|
IndexOfKey | Returns the index of the first occurrence of a tree node with the specified key. |
|
Insert(Int32, String) | Creates a tree node with the specified text and inserts it at the specified index. |
|
Insert(Int32, TreeNode) | Inserts an existing tree node into the tree node collection at the specified location. |
|
Insert(Int32, String, String) | Creates a tree node with the specified text and key, and inserts it into the collection. |
|
Insert(Int32, String, String, Int32) | Creates a tree node with the specified key, text, and image, and inserts it into the collection at the specified index. |
|
Insert(Int32, String, String, String) | Creates a tree node with the specified key, text, and image, and inserts it into the collection at the specified index. |
|
Insert(Int32, String, String, Int32, Int32) | Creates a tree node with the specified key, text, and images, and inserts it into the collection at the specified index. |
|
Insert(Int32, String, String, String, String) | Creates a tree node with the specified key, text, and images, and inserts it into the collection at the specified index. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Removes the specified tree node from the tree node collection. |
|
RemoveAt | Removes a tree node from the tree node collection at a specified index. |
|
RemoveByKey | Removes the tree node with the specified key from the collection. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
IList.Add | Infrastructure. Adds an object to the end of the tree node collection. |
|
IList.Contains | Infrastructure. Determines whether the specified tree node is a member of the collection. |
|
IList.IndexOf | Infrastructure. Returns the index of the specified tree node in the collection. |
|
IList.Insert | Infrastructure. Inserts an existing tree node in the tree node collection at the specified location. |
|
IList.Remove | Infrastructure. Removes the specified tree node from the tree node collection. |