Table of Contents

Class TextValidateField

Namespace
Terminal.Gui.Views
Assembly
Terminal.Gui.dll

Masked text editor that validates input through a ITextValidateProvider

public class TextValidateField : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable
Inheritance
TextValidateField
Implements
Inherited Members

Constructors

TextValidateField()

Initializes a new instance of the TextValidateField class.

Properties

IsValid

This property returns true if the input is valid.

Provider

Provider

Text

Text

Methods

EnableForDesign()

Causes the View to enable design-time mode. This typically means that the view will load demo data and be configured to allow for design-time manipulation.

OnDrawingContent()

Called when the View's content is to be drawn. The default implementation does nothing.

OnKeyDownNotHandled(Key)

Called when the user has pressed key it wasn't handled by KeyDown and was not bound to a key binding.

OnMouseEvent(MouseEventArgs)

Called when a mouse event occurs within the view's Viewport.

PositionCursor()

Positions the cursor in the right position based on the currently focused view in the chain.