Table of Contents

Method GetNextMatchingItem

Namespace
Terminal.Gui.Views
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).

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

int?

The index of the item that matches what the user has typed. Returns null if no item in the collection matched.