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