Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Win.Navigation

#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