Method GetNextMatchingItem | Terminal.Gui v1 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
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
int
The index in the collection to start the search from.
keyStruck
char
The character of the key the user pressed.
Returns
The index of the item that matches what the user has typed. Returns -1
if no item in the collection matched.