Table of Contents

Class DateField

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Simple Date editing View

public class DateField : TextField, IDisposable, ISupportInitializeNotification, ISupportInitialize
Inheritance
DateField
Implements
Inherited Members

Remarks

The DateFieldView provides date editing functionality with mouse support.

Constructors

DateField()

Initializes a new instance of DateField using Computed layout.

DateField(DateTime)

Initializes a new instance of DateField using Computed layout.

Properties

Culture

CultureInfo for date. The default is CultureInfo.CurrentCulture.

CursorPosition

Sets or gets the current cursor position.

Date

Gets or sets the date of the DateField.

Methods

DeleteCharLeft(bool)

Deletes the character to the left.

DeleteCharRight()

Deletes the character to the right.

OnDateChanged(DateTimeEventArgs<DateTime>)

Event firing method for the DateChanged event.

OnMouseEvent(MouseEvent)

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

OnProcessKeyDown(Key)

Processes key presses for the TextField. The TextField control responds to the following keys:

KeysFunction
Delete, BackspaceDeletes the character before cursor.

Events

DateChanged

DateChanged event, raised when the Date property has changed.