TreeNodeCollection.IList.Remove Method (Object)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Removes the specified tree node from the tree node collection.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

void IList.Remove(
	object node
)

Parameters

node
Type: System.Object

The TreeNode to remove from the collection.

You cannot pass in a string to remove the node that has the value of the string as its Text property.

When a TreeNode is removed from the tree node collection, all subsequent tree nodes are moved up one position in the collection.

.NET Framework
Available since 1.1
Return to top
Show: