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.

DateField(int, int, DateTime, bool)

Initializes a new instance of DateField using Absolute layout.

Properties

CursorPosition

Sets or gets the current cursor position.

Date

Gets or sets the date of the DateField.

IsShortFormat

Get or set the date format for the widget.

Methods

DeleteCharLeft(bool)

Deletes the left character.

DeleteCharRight()

Deletes the right character.

MouseEvent(MouseEvent)

Method invoked when a mouse event is generated

OnDateChanged(DateTimeEventArgs<DateTime>)

Event firing method for the DateChanged event.

ProcessKey(KeyEvent)

Processes key presses for the TextField.

Events

DateChanged

DateChanged event, raised when the Date property has changed.