Back to Devexpress

BaseListBoxControl.FindItem(Object) Method

windowsforms-devexpress-dot-xtraeditors-dot-baselistboxcontrol-dot-finditem-x28-system-dot-object-x29.md

latest1.6 KB
Original Source

BaseListBoxControl.FindItem(Object) Method

Returns the index of the specified item.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public int FindItem(
    object item
)
vb
Public Function FindItem(
    item As Object
) As Integer

Parameters

NameTypeDescription
itemObject

An object which represents an item whose index is returned.

|

Returns

TypeDescription
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

GetItem(Int32)

BaseListBoxControl Class

BaseListBoxControl Members

DevExpress.XtraEditors Namespace