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
| Improve this Doc View SourceTextValidateField()
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
| Improve this Doc View SourceIsValid
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 |
---|---|
ustring |
Methods
| Improve this Doc View SourceMouseEvent(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
| Improve this Doc View SourcePositionCursor()
Positions the cursor in the right position based on the currently focused view in the chain.
Declaration
public override void PositionCursor()
Overrides
| Improve this Doc View SourceProcessKey(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
| Improve this Doc View SourceRedraw(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