Class TextValidateField
Text field that validates input through a ITextValidateProvider
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize
Inherited Members
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class TextValidateField : View
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)
Method invoked when a mouse event is generated
Declaration
public override bool MouseEvent(MouseEvent mouseEvent)
Parameters
| Type | Name | Description |
|---|---|---|
| MouseEvent | mouseEvent | Contains the details about the mouse event. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true, if the event was handled, false otherwise. |
Overrides
PositionCursor()
Positions the cursor in the right position based on the currently focused view in the chain.
Declaration
public override void PositionCursor()
Overrides
ProcessKey(KeyEvent)
If the view is focused, gives the view a
chance to process the keystroke.
Declaration
public override bool ProcessKey(KeyEvent kb)
Parameters
| Type | Name | Description |
|---|---|---|
| KeyEvent | kb |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Redraw(Rect)
Redraws this view and its subviews; only redraws the views that have been flagged for a re-display.
Declaration
public override void Redraw(Rect bounds)
Parameters
| Type | Name | Description |
|---|---|---|
| Rect | bounds | The bounds (view-relative region) to redraw. |
Overrides
Implements
System.IDisposable
System.ComponentModel.ISupportInitializeNotification
System.ComponentModel.ISupportInitialize