Class CollectionNavigator
Navigates a collection of items using keystrokes. The keystrokes are used to build a search string. The SearchString is used to find the next item in the collection that matches the search string when GetNextMatchingItem(int, char) is called.
If the user types keystrokes that can't be found in the collection, the search string is cleared and the next item is found that starts with the last keystroke.
If the user pauses keystrokes for a short time (see TypingDelay), the search string is cleared.
public class CollectionNavigator : CollectionNavigatorBase
- Inheritance
-
CollectionNavigator
- Inherited Members
Remarks
This implementation is based on a static Collection of objects.
Constructors
- CollectionNavigator()
Constructs a new CollectionNavigator.
- CollectionNavigator(IList)
Constructs a new CollectionNavigator for the given collection.
Properties
- Collection
The collection of objects to search. ToString() is used to search the collection.
Methods
- ElementAt(int)
Returns the collection being navigated element at
idx
.
- GetCollectionLength()
Return the number of elements in the collection