TreeNodeStyleCollection::Contains Method (TreeNodeStyle^)

 

Determines whether the specified TreeNodeStyle object is in the collection.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
bool Contains(
	TreeNodeStyle^ style
)

Parameters

style
Type: System.Web.UI.WebControls::TreeNodeStyle^

The TreeNodeStyle to find.

Return Value

Type: System::Boolean

true, 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
Return to top
Show: