Class TextField | Terminal.Gui v1 (original) (raw)
Single-line text entry View
public class TextField : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Inheritance
TextField
Implements
Derived
Inherited Members
Remarks
The TextFieldView provides editing functionality and mouse support.
Constructors
Initializes a new instance of the TextField class using Computed positioning.
Initializes a new instance of the TextField class using Computed positioning.
TextField(int, int, int, ustring)
Initializes a new instance of the TextField class using Absolute positioning.
Initializes a new instance of the TextField class using Computed positioning.
Properties
Provides autocomplete context menu based on suggestions at the current cursor position. Populate AllSuggestions to enable this feature.
Gets or sets a value indicating whether this Responder can focus.
Get the ContextMenu for this view.
Sets or gets the current cursor position.
Get / Set the wished cursor when the field is focused
Gets or sets the frame for the view. The frame is relative to the view's container (SuperView).
Indicates whatever the text has history changes or not.true if the text has history changes false otherwise.
Indicates whatever the text was changed or not.true if the text was changed false otherwise.
If set to true its not allow any changes in the text.
Gets the left offset position.
Sets the secret property.
Length of the selected text.
Start position of the selected text.
The selected text.
Sets or gets the text held by the view.
Tracks whether the text field should be considered "used", that is, that the user has moved in the entry, so new input should be appended at the cursor position, rather than clearing the entry
Methods
Clear the selected text.
Allows clearing the HistoryText.HistoryTextItem items updating the original text.
Copy the selected text to the clipboard.
Cut the selected text to the clipboard.
Deletes all text.
Deletes the left character.
Deletes the right character.
Determines the current ColorScheme based on the Enabled value.
Inserts the given toAdd
text at the current cursor position exactly as if the user had just typed it
Deletes word backwards.
Deletes word forwards.
Method invoked when a mouse event is generated
Method invoked when a view gets focus.
Method invoked when a view loses focus.
Virtual method that invoke the TextChanging event if it's defined.
Paste the selected text from the clipboard.
Sets the cursor position.
Processes key presses for the TextField.
Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
Selects all text.
Events
Changed event, raised when the text has changed.
Changing event, raised before the Text changes and can be canceled or changing the new text.