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
Constructors
TextFieldAutocomplete()
Declaration
public TextFieldAutocomplete()
Methods
DeleteTextBackwards()
Deletes the text backwards before insert the selected text in the HostControl.
Declaration
protected override void DeleteTextBackwards()
Overrides
GetCurrentWord()
Returns the currently selected word from the HostControl.
When overriding this method views can make use of IdxToWord(List<Rune>, Int32)
Declaration
protected override string GetCurrentWord()
Returns
Type | Description |
---|---|
System.String |
Overrides
InsertText(String)
Inser the selected text in the HostControl.
Declaration
protected override void InsertText(string accepted)
Parameters
Type | Name | Description |
---|---|---|
System.String | accepted |