A newer version of this page is available. Switch to the current version.

DXCollectionBase<T>.IndexOf(T) Method

Returns the zero-based index of the specified element in the collection.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v19.2.dll

Declaration

public virtual int IndexOf(
    T value
)
Public Overridable Function IndexOf(
    value As T
) As Integer

Parameters

Name Type Description
value T

A <T> object to locate in the collection.

Returns

Type Description
Int32

An integer value representing the position of the specified element in the collection.

Remarks

If the specified element is not found in the collection, this method returns -1.

Implements

See Also