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.
int? FindStringEx(string? str, int? startIndex, bool exact, bool ignoreCase)
Parameters
strstringThe string to search for.
startIndexint?The zero-based index of the item before the first item to be searched. Set to
nullto search from the beginning of the control.exactbooltrueuses exact comparison;falseuses partial compare.ignoreCaseboolWhether to ignore text case or not.
Returns
- int?
The zero-based index of the first item found; returns
nullif 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.