Skip to main content
A newer version of this page is available. .

CheckedComboBoxEdit.FindString(String, Int32, Boolean) Method

Searches for the first CheckedComboBoxEdit item that starts with the target text. The search is performed in the specific direction and starts from the required item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public int FindString(
    string s,
    int startIndex,
    bool upDown
)

Parameters

Name Type Description
s String

A String value that is the text to find.

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.

Returns

Type Description
Int32

An Int32 value that is the found item’s index within this CheckedComboBoxEdit. If no item was found, returns -1.

Remarks

If you need an exact match (an item whose caption is equal to the sought string), use the CheckedComboBoxEdit.FindStringExact method instead.

The FindString method performs a non-case sensitive search.

See Also