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

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.v19.2.dll

Declaration

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

Parameters

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.

Returns

Type Description
Int32

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

See Also