StyleCollection.Contains Method (Style)

 

Determines whether the specified style is contained within the collection.

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

public bool Contains(
	Style style
)

Parameters

style
Type: System.Web.UI.WebControls.Style

The Style to locate within the collection.

Return Value

Type: System.Boolean

true if the style is in the collection; otherwise, false.

The Contains method determines equality by using the Equals method on the Style objects.

.NET Framework
Available since 2.0
Return to top
Show: