Back to Devexpress

DXCollectionBase<T>.IndexOf(T) Method

corelibraries-devexpress-dot-utils-dot-dxcollectionbase-1-dot-indexof-x28-0-x29.md

latest1.3 KB
Original Source

DXCollectionBase<T>.IndexOf(T) Method

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

Namespace : DevExpress.Utils

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

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

Parameters

NameTypeDescription
valueT

A <T> object to locate in the collection.

|

Returns

TypeDescription
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

DXCollectionBase<T> Class

DXCollectionBase<T> Members

DevExpress.Utils Namespace