System.Windows.Forms.TreeNodeCollection Members

The members of System.Windows.Forms.TreeNodeCollection are listed below.

See Also: Inherited members from System.Object

Public Properties

[read-only]
Countint.

Gets the total number of System.Windows.Forms.TreeNode objects in the collection.

[read-only]
IsReadOnlybool.

Gets a value indicating whether the collection is read-only.

default property
Item(int)TreeNode. Documentation for this section has not yet been entered.
[read-only]
default property
Item(string)TreeNode. Documentation for this section has not yet been entered.

Public Methods

Add(string) : TreeNode

Adds a new tree node with the specified label text to the end of the current tree node collection.

Add(TreeNode) : int

Adds a previously created tree node to the end of the tree node collection.

Add(string, string) : TreeNode

Creates a new tree node with the specified key and text, and adds it to the collection.

Add(string, string, int) : TreeNode

Creates a tree node with the specified key, text, and image, and adds it to the collection.

Add(string, string, string) : TreeNode

Creates a tree node with the specified key, text, and image, and adds it to the collection.

Add(string, string, int, int) : TreeNode

Creates a tree node with the specified key, text, and images, and adds it to the collection.

Add(string, string, string, string) : TreeNode

Creates a tree node with the specified key, text, and images, and adds it to the collection.

AddRange(TreeNode[])

Adds an array of previously created tree nodes to the collection.

Clear()

Removes all tree nodes from the collection.

Contains(TreeNode) : bool

Determines whether the specified tree node is a member of the collection.

ContainsKey(string) : bool

Determines whether the collection contains a tree node with the specified key.

CopyTo(Array, int)

Copies the entire collection into an existing array at a specified location within the array.

Find(string, bool) : TreeNode[]

Finds the tree nodes with specified key, optionally searching subnodes.

GetEnumerator() : IEnumerator

Returns an enumerator that can be used to iterate through the tree node collection.

IndexOf(TreeNode) : int

Returns the index of the specified tree node in the collection.

IndexOfKey(string) : int

Returns the index of the first occurrence of a tree node with the specified key.

Insert(int, string) : TreeNode

Creates a tree node with the specified text and inserts it at the specified index.

Insert(int, TreeNode)

Inserts an existing tree node into the tree node collection at the specified location.

Insert(int, string, string) : TreeNode

Creates a tree node with the specified text and key, and inserts it into the collection.

Insert(int, string, string, int) : TreeNode

Creates a tree node with the specified key, text, and image, and inserts it into the collection at the specified index.

Insert(int, string, string, string) : TreeNode

Creates a tree node with the specified key, text, and image, and inserts it into the collection at the specified index.

Insert(int, string, string, int, int) : TreeNode

Creates a tree node with the specified key, text, and images, and inserts it into the collection at the specified index.

Insert(int, string, string, string, string) : TreeNode

Creates a tree node with the specified key, text, and images, and inserts it into the collection at the specified index.

Remove(TreeNode)

Removes the specified tree node from the tree node collection.

RemoveAt(int)

Removes a tree node from the tree node collection at a specified index.

RemoveByKey(string)

Removes the tree node with the specified key from the collection.

Explicitly Implemented Interface Members

IList.Add

Adds an object to the end of the tree node collection.

IList.Contains

Determines whether the specified tree node is a member of the collection.

IList.IndexOf

Returns the index of the specified tree node in the collection.

IList.Insert

Inserts an existing tree node in the tree node collection at the specified location.

[read-only]
IList.IsFixedSizebool.

Gets a value indicating whether the tree node collection has a fixed size.

[read-only]
ICollection.IsSynchronizedbool.

Gets a value indicating whether access to the collection is synchronized (thread safe).

IList.Itemobject. Documentation for this section has not yet been entered.
IList.Remove

Removes the specified tree node from the tree node collection.

[read-only]
ICollection.SyncRootobject.

Gets an object that can be used to synchronize access to the collection.