Method GetNextMatchingItem
GetNextMatchingItem(int, char)
Gets the index of the next item in the collection that matches the current SearchString plus the provided character (typically from a key press).
public int GetNextMatchingItem(int currentIndex, char keyStruck)
Parameters
currentIndex
intThe index in the collection to start the search from.
keyStruck
charThe character of the key the user pressed.
Returns
- int
The index of the item that matches what the user has typed. Returns
-1
if no item in the collection matched.