- index
- The index of the System.Windows.Forms.TreeNode to remove.
When a System.Windows.Forms.TreeNode is removed from the tree node collection, all subsequent tree nodes are moved up one position in the collection.
You can also remove a System.Windows.Forms.TreeNode that you previously added by using the TreeNodeCollection.Remove(TreeNode) or TreeNodeCollection.Clear methods.
Enumerating the collection and removing nodes is not supported.
To add new System.Windows.Forms.TreeNode objects to the collection, use the TreeNodeCollection.Add(string), TreeNodeCollection.AddRange(TreeNode[]), or TreeNodeCollection.Insert(int, TreeNode) methods.