BaseListBoxControl.FindString(String, Int32, Boolean) Method

Searches for the first list box item in the specified direction from the specified index, and starting with a specific string.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


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


Name Type Description
s String

A string value representing the search text.

startIndex Int32

An integer value providing the zero-based index of the start item.

upDown Boolean

true to search to the end of the item list; false to search to the beginning of the item list.


Type Description

An integer value representing the zero-based index of the first item found. -1 if no item is found.

See Also