Skip to main content

IndexOf Method

Determines the index of a specific item in the IList(T).

Definition​

Namespace: Avalonia.Styling
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public int IndexOf(
IStyle item
)

Parameters​

  IStyle
The object to locate in the IList(T).

Return Value​

Int32
The index of item if found in the list; otherwise, -1.

Implements​

IList(T).IndexOf(T)

See Also​

Reference​

Styles Class
Avalonia.Styling Namespace