Class TextValidateField
Inheritance
TextValidateField
Assembly: Terminal.Gui.dll
Syntax
public class TextValidateField : View, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
|
Edit this page
View Source
TextValidateField()
Declaration
public TextValidateField()
|
Edit this page
View Source
TextValidateField(ITextValidateProvider)
Declaration
public TextValidateField(ITextValidateProvider provider)
Parameters
Properties
|
Edit this page
View Source
IsValid
This property returns true if the input is valid.
Declaration
public virtual bool IsValid { get; }
Property Value
|
Edit this page
View Source
Provider
Provider
Declaration
public ITextValidateProvider Provider { get; set; }
Property Value
|
Edit this page
View Source
Text
Text
Declaration
public ustring Text { get; set; }
Property Value
Methods
|
Edit this page
View Source
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 |
| bool |
true, if the event was handled, false otherwise. |
Overrides
|
Edit this page
View Source
PositionCursor()
Positions the cursor in the right position based on the currently focused view in the chain.
Declaration
public override void PositionCursor()
Overrides
|
Edit this page
View Source
ProcessKey(KeyEvent)
If the view is focused, gives the view a
chance to process the keystroke.
Declaration
public override bool ProcessKey(KeyEvent kb)
Parameters
Returns
Overrides
|
Edit this page
View Source
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