Determines whether the specified System.Web.UI.WebControls.TreeNodeStyle object is in the collection.
- style
- The System.Web.UI.WebControls.TreeNodeStyle to find.
true, if the specified System.Web.UI.WebControls.TreeNodeStyle object is contained in the collection; otherwise, false.
Use the TreeNodeStyleCollection.Contains(TreeNodeStyle) method to determine whether a System.Web.UI.WebControls.TreeNodeStyle object is contained in the System.Web.UI.WebControls.TreeNodeStyleCollection object. The TreeNodeStyleCollection.Contains(TreeNodeStyle) method is commonly used to test for the existence of a System.Web.UI.WebControls.TreeNodeStyle object before performing a task, such as adding or removing the node from the collection.