StyleCollection::IndexOf Method (Style^)
.NET Framework (current version)
Returns the index of the specified Style object within the collection.
Assembly: System.Web (in System.Web.dll)
Parameters
- style
-
Type:
System.Web.UI.WebControls::Style^
The Style to locate within the collection.
Return Value
Type: System::Int32The zero-based index of the first occurrence of style within the collection; otherwise, -1 if the style is not in the collection.
.NET Framework
Available since 2.0
Available since 2.0
Show: