Skip to main content

BaseListBoxControl.FindItem(Object) Method

Returns the index of the specified item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

public int FindItem(
    object item
)

Parameters

Name Type Description
item Object

An object which represents an item whose index is returned.

Returns

Type Description
Int32

An integer value which specifies the item’s position within the collection. -1 if the item isn’t found.

Remarks

The FindItem method can be used when the list box is bound to a data source. Otherwise, this method returns -1.

See Also