Removes the specified System.Web.UI.WebControls.TreeNodeStyle object from the System.Web.UI.WebControls.TreeNodeStyleCollection object.
- style
- The System.Web.UI.WebControls.TreeNodeStyle to remove.
Use the TreeNodeStyleCollection.Remove(TreeNodeStyle) method to remove the specified System.Web.UI.WebControls.TreeNodeStyle object from the collection. The indexes of the remaining objects are updated to be consecutive.
As an alternative, you can remove a node at specific index by using the TreeNodeStyleCollection.RemoveAt(int) method. You can also remove every node in the collection by using the System.Web.UI.StateManagedCollection.Clear method.