Class TextFieldAutocomplete
Renders an overlay on another view at a given point that allows selecting
from a range of 'autocomplete' options.
An implementation on a TextField.
Implements
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class TextFieldAutocomplete : Autocomplete, IAutocomplete
Methods
| Edit this page View SourceDeleteTextBackwards()
Deletes the text backwards before insert the selected text in the HostControl.
Declaration
protected override void DeleteTextBackwards()
Overrides
| Edit this page View SourceGetCurrentWord(int)
Returns the currently selected word from the HostControl.
When overriding this method views can make use of IdxToWord(List<Rune>, int, int)
Declaration
protected override string GetCurrentWord(int columnOffset = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| int | columnOffset | The column offset. |
Returns
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceInsertText(string)
Inser the selected text in the HostControl.
Declaration
protected override void InsertText(string accepted)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accepted |