Method FindStringEx
FindStringEx(string?, int?, bool, bool)
Returns the index of the first item in the control beyond the specified index that contains or equal the specified string.
public virtual int? FindStringEx(string? str, int? startIndex, bool exact, bool ignoreCase)
Parameters
str
stringThe string to search for.
startIndex
int?The zero-based index of the item before the first item to be searched. Set to
null
to search from the beginning of the control.exact
booltrue
uses exact comparison;false
uses partial compare.ignoreCase
boolWhether to ignore text case or not.
Returns
- int?
The zero-based index of the first item found; returns
null
if no match is found.
Remarks
The str
parameter is a substring to compare against the text associated with the
items in the control.
The search performs a partial match (exact
is false
)
or exact match (exact
is true
)
Search starts from the beginning of the text, returning the first item in the
list that matches the specified substring.