ListSortDescriptionCollection.IndexOf(Object) Method

Definition

Returns the index of the specified item in the collection.

public:
 virtual int IndexOf(System::Object ^ value);
public int IndexOf (object value);
public int IndexOf (object? value);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (value As Object) As Integer

Parameters

value
Object

The Object to locate in the collection.

Returns

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

Implements

Applies to