Class TextViewAutocomplete
Renders an overlay on another view at a given point that allows selecting
from a range of 'autocomplete' options.
An implementation on a TextView.
Implements
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class TextViewAutocomplete : Autocomplete, IAutocomplete
Constructors
TextViewAutocomplete()
Declaration
public TextViewAutocomplete()
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 |