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

CheckedComboBoxEdit.FindStringExact(String, Int32) Method

Searches for a CheckedComboBoxEdit item whose caption is equal to the target string. The search is performed starting from the desired item.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

public int FindStringExact(
    string s,
    int startIndex
)

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’s index, starting from which the method should seek the matching item.

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

The FindStringExact method searches for an item whose caption entirely matches the target string. If you need to find any item whose caption starts with the required item (partial match), use one of the CheckedComboBoxEdit.FindString method overloads instead.

The FindStringExact method performs a non-case sensitive search.

See Also