Skip to main content

DXCollectionBase<T>.IndexOf(T) Method

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v24.2.dll

NuGet Package: DevExpress.Data

#Declaration

public virtual int IndexOf(
    T value
)

#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.

See Also