Rediger

Del via


TreeNodeStyleCollection.Contains(TreeNodeStyle) Method

Definition

Determines whether the specified TreeNodeStyle object is in the collection.

public:
 bool Contains(System::Web::UI::WebControls::TreeNodeStyle ^ style);
public bool Contains (System.Web.UI.WebControls.TreeNodeStyle style);
member this.Contains : System.Web.UI.WebControls.TreeNodeStyle -> bool
Public Function Contains (style As TreeNodeStyle) As Boolean

Parameters

style
TreeNodeStyle

The TreeNodeStyle to find.

Returns

true, if the specified TreeNodeStyle object is contained in the collection; otherwise, false.

Remarks

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.

Applies to

See also