System.Web.UI.WebControls.TreeNodeCollection: Method Members

The methods of System.Web.UI.WebControls.TreeNodeCollection are listed below. For a list of all members, see the TreeNodeCollection Members list.

See Also: Inherited members from System.Object

Public Methods

Add(TreeNode)

Appends the specified System.Web.UI.WebControls.TreeNode object to the end of the System.Web.UI.WebControls.TreeNodeCollection object.

AddAt(int, TreeNode)

Inserts the specified System.Web.UI.WebControls.TreeNode object in a System.Web.UI.WebControls.TreeNodeCollection object at the specified index location.

Clear()

Empties the System.Web.UI.WebControls.TreeNodeCollection object.

Contains(TreeNode) : bool

Determines whether the specified System.Web.UI.WebControls.TreeNode object is in the collection.

CopyTo(TreeNode[], int)

Copies all the items from the System.Web.UI.WebControls.TreeNodeCollection object to a compatible one-dimensional array of System.Web.UI.WebControls.TreeNode objects, starting at the specified index in the target array.

GetEnumerator() : IEnumerator

Returns an enumerator that can be used to iterate through a System.Web.UI.WebControls.TreeNodeCollection object.

IndexOf(TreeNode) : int

Determines the index of the specified System.Web.UI.WebControls.TreeNode object.

Remove(TreeNode)

Removes the specified System.Web.UI.WebControls.TreeNode object from the System.Web.UI.WebControls.TreeNodeCollection object.

RemoveAt(int)

Removes the System.Web.UI.WebControls.TreeNode object at the specified index location from the System.Web.UI.WebControls.TreeNodeCollection object.