BaseListBoxControl.FindItem(Object) Method
Returns the index of the specified item.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
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