Export (0) Print
Expand All

TreeNodeCollection Methods

The TreeNodeCollection type exposes the following members.

  Name Description
Public method Add(String) Adds a new tree node with the specified label text to the end of the current tree node collection.
Public method Add(TreeNode) Adds a previously created tree node to the end of the tree node collection.
Public method Add(String, String) Creates a new tree node with the specified key and text, and adds it to the collection.
Public method Add(String, String, Int32) Creates a tree node with the specified key, text, and image, and adds it to the collection.
Public method Add(String, String, String) Creates a tree node with the specified key, text, and image, and adds it to the collection.
Public method Add(String, String, Int32, Int32) Creates a tree node with the specified key, text, and images, and adds it to the collection.
Public method Add(String, String, String, String) Creates a tree node with the specified key, text, and images, and adds it to the collection.
Public method AddRange Adds an array of previously created tree nodes to the collection.
Public method Clear Removes all tree nodes from the collection.
Public method Contains Determines whether the specified tree node is a member of the collection.
Public method ContainsKey Determines whether the collection contains a tree node with the specified key.
Public method CopyTo Copies the entire collection into an existing array at a specified location within the array.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Finds the tree nodes with specified key, optionally searching subnodes.
Public method GetEnumerator Returns an enumerator that can be used to iterate through the tree node collection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Returns the index of the specified tree node in the collection.
Public method IndexOfKey Returns the index of the first occurrence of a tree node with the specified key.
Public method Insert(Int32, String) Creates a tree node with the specified text and inserts it at the specified index.
Public method Insert(Int32, TreeNode) Inserts an existing tree node into the tree node collection at the specified location.
Public method Insert(Int32, String, String) Creates a tree node with the specified text and key, and inserts it into the collection.
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified tree node from the tree node collection.
Public method RemoveAt Removes a tree node from the tree node collection at a specified index.
Public method RemoveByKey Removes the tree node with the specified key from the collection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  Name Description
Explicit interface implemetation Private method IList.Add Infrastructure. Adds an object to the end of the tree node collection.
Explicit interface implemetation Private method IList.Contains Infrastructure. Determines whether the specified tree node is a member of the collection.
Explicit interface implemetation Private method IList.IndexOf Infrastructure. Returns the index of the specified tree node in the collection.
Explicit interface implemetation Private method IList.Insert Infrastructure. Inserts an existing tree node in the tree node collection at the specified location.
Explicit interface implemetation Private method IList.Remove Infrastructure. Removes the specified tree node from the tree node collection.
Top
Show:
© 2014 Microsoft