Table of Contents

Class AppendAutocomplete

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Autocomplete for a TextField which shows suggestions within the box. Displayed suggestions can be completed using the tab key.

public class AppendAutocomplete : AutocompleteBase, IAutocomplete
Inheritance
AppendAutocomplete
Implements
Inherited Members

Constructors

AppendAutocomplete(TextField)

Creates a new instance of the AppendAutocomplete class.

Properties

ColorScheme

The color used for rendering the appended text. Note that only Normal is used and then only Foreground (Background comes from HostControl).

HostControl

The host control that will use autocomplete.

Methods

ClearSuggestions()

Clears Suggestions

GenerateSuggestions(AutocompleteContext)

Populates Suggestions with all Suggestion proposed by SuggestionGenerator at the given context (cursor position)

OnMouseEvent(MouseEventArgs, bool)

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.

ProcessKey(Key)

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.

RenderOverlay(Point)

Renders the current suggestion into the TextField