StyleCollection::IndexOf Method (Style^)

 

Returns the index of the specified Style object within the collection.

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

public:
int IndexOf(
	Style^ style
)

Parameters

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

The Style to locate within the collection.

Return Value

Type: System::Int32

The zero-based index of the first occurrence of style within the collection; otherwise, -1 if the style is not in the collection.

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

.NET Framework
Available since 2.0
Return to top
Show: