Class TextValidateField<T>
Inheritance
System.Object
TextValidateField<T>
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)
Assembly: Terminal.Gui.dll
Syntax
public class TextValidateField<T> : View, IDisposable, ISupportInitializeNotification, ISupportInitialize where T : ITextValidateProvider
Type Parameters
Constructors
TextValidateField()
Declaration
public TextValidateField()
TextValidateField(ustring)
Declaration
public TextValidateField(ustring mask)
Parameters
Type |
Name |
Description |
NStack.ustring |
mask |
Mask |
TextValidateField(ustring, ustring)
Declaration
public TextValidateField(ustring mask, ustring text)
Parameters
Type |
Name |
Description |
NStack.ustring |
mask |
|
NStack.ustring |
text |
Initial Value |
Properties
IsValid
This property returns true if the input is valid.
Declaration
public virtual bool IsValid { get; }
Property Value
Type |
Description |
System.Boolean |
|
Mask
Mask
Declaration
public ustring Mask { get; set; }
Property Value
Type |
Description |
NStack.ustring |
|
Provider
Get the Provider
Declaration
public T Provider { get; }
Property Value
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()
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
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