Class TextRegexProvider
- Namespace
- Terminal.Gui.TextValidateProviders
- Assembly
- Terminal.Gui.dll
Regex Provider for TextValidateField.
public class TextRegexProvider : ITextValidateProvider
- Inheritance
-
TextRegexProvider
- Implements
- Inherited Members
Constructors
- TextRegexProvider(string)
Empty Constructor.
Properties
- DisplayText
Gets the formatted string for display.
- Fixed
Set that this provider uses a fixed width. e.g. Masked ones are fixed.
- IsValid
True if the input is valid, otherwise false.
- Pattern
Regex pattern property.
- Text
Set the input text and get the current value.
- ValidateOnInput
When true, validates with the regex pattern on each input, preventing the input if it's not valid.
Methods
- Cursor(int)
Set Cursor position to
pos
.
- CursorEnd()
Find the last valid character position.
- CursorLeft(int)
First valid position before
pos
.
- CursorRight(int)
First valid position after
pos
.
- CursorStart()
Find the first valid character position.
- Delete(int)
Deletes the current character in
pos
.
- InsertAt(char, int)
Insert character
ch
in positionpos
.
- OnTextChanged(EventArgs<string>)
Method that invoke the TextChanged event if it's defined.
Events
- TextChanged
Changed event, raised when the text has changed.
This event is raised when the Text changes. The passed EventArgs is a string containing the old value.