Class TextValidateField
Text field that validates input through a ITextValidateProvider
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class TextValidateField : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
TextValidateField()
Initializes a new instance of the TextValidateField class using Computed positioning.
Declaration
public TextValidateField()
TextValidateField(ITextValidateProvider)
Initializes a new instance of the TextValidateField class using Computed positioning.
Declaration
public TextValidateField(ITextValidateProvider provider)
Parameters
Type | Name | Description |
---|---|---|
ITextValidateProvider | provider |
Properties
IsValid
This property returns true if the input is valid.
Declaration
public virtual bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Provider
Provider
Declaration
public ITextValidateProvider Provider { get; set; }
Property Value
Type | Description |
---|---|
ITextValidateProvider |
Text
Text
Declaration
public ustring Text { get; set; }
Property Value
Type | Description |
---|---|
NStack.ustring |
Methods
MouseEvent(MouseEvent)
Declaration
public override bool MouseEvent(MouseEvent mouseEvent)
Parameters
Type | Name | Description |
---|---|---|
MouseEvent | mouseEvent |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
PositionCursor()
Declaration
public override void PositionCursor()
Overrides
ProcessKey(KeyEvent)
Declaration
public override bool ProcessKey(KeyEvent kb)
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Redraw(Rect)
Declaration
public override void Redraw(Rect bounds)
Parameters
Type | Name | Description |
---|---|---|
Rect | bounds |
Overrides
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize