CheckedComboBoxEdit.FindItem(Int32, Boolean, ListBoxFindItemDelegate) Method
Returns the index of the first CheckedComboBoxEdit item that matches the custom criteria implemented in the predicate delegate method.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v25.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Parameters
| Name | Type | Description |
|---|---|---|
| startIndex | Int32 | An Int32 value that is a CheckedComboBoxEdit item index, starting from which the method should seek the matching item. |
| upDown | Boolean | true, to search from the collection’s beginning to its end; otherwise, false. |
| predicate | DevExpress.XtraEditors.ListBoxFindItemDelegate | A delegate that implements the search criteria. |
Returns
| Type | Description |
|---|---|
| Int32 | An Int32 value that is the index of the found item within the RepositoryItemCheckedComboBoxEdit.Items collection. If no items were found, returns -1. |
Remarks
If you need to find an item whose text matches the desired text string, use the CheckedComboBoxEdit.FindString or CheckedComboBoxEdit.FindStringExact methods instead.