Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Contains Method
Collapse the table of content
Expand the table of content

TreeNodeStyleCollection.Contains Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft