TreeNodeStyleCollection::Contains Method (TreeNodeStyle^)
.NET Framework (current version)
Determines whether the specified TreeNodeStyle object is in the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- style
-
Type:
System.Web.UI.WebControls::TreeNodeStyle^
The TreeNodeStyle to find.
Return Value
Type: System::Booleantrue, if the specified TreeNodeStyle object is contained in the collection; otherwise, false.
Use the Contains method to determine whether a TreeNodeStyle object is contained in the TreeNodeStyleCollection object. The Contains method is commonly used to test for the existence of a TreeNodeStyle object before performing a task, such as adding or removing the node from the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: