System.Web.UI.WebControls.TreeNodeStyleCollection.Contains Method

Determines whether the specified System.Web.UI.WebControls.TreeNodeStyle object is in the collection.

Syntax

public bool Contains (TreeNodeStyle style)

Parameters

style
The System.Web.UI.WebControls.TreeNodeStyle to find.

Returns

true, if the specified System.Web.UI.WebControls.TreeNodeStyle object is contained in the collection; otherwise, false.

Remarks

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.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0