Interface IAutocomplete | Terminal.Gui v1 (original) (raw)
Namespace
Assembly
Terminal.Gui.dll
Renders an overlay on another view at a given point that allows selecting from a range of 'autocomplete' options.
public interface IAutocomplete
Properties
The full set of all strings that can be suggested.
The key that the user can press to close the currently popped autocomplete menu
The colors to use to render the overlay. Accessing this property before the Application has been initialized will cause an error
The host control that will use autocomplete.
The maximum number of visible rows in the autocomplete dropdown to render
The maximum width of the autocomplete dropdown
Gets or sets where the popup will be displayed.
The key that the user can press to reopen the currently popped autocomplete menu
The currently selected index into Suggestions that the user has highlighted
The key that the user must press to accept the currently selected autocomplete suggestion
The strings that form the current list of suggestions to render based on what the user has typed so far.
True if the autocomplete should be considered open and visible
Methods
Clears Suggestions
Populates Suggestions with all strings in AllSuggestions that match with the current cursor position/text in the HostControl.
Handle mouse events before HostControl e.g. to make mouse events like report/click apply to the autocomplete control instead of changing the cursor position in the underlying text view.
Handle key events before HostControl e.g. to make key events like up/down apply to the autocomplete control instead of changing the cursor position in the underlying text view.
Renders the autocomplete dialog inside the given HostControl at the given point.