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.

DateField(DateTime)

Initializes a new instance of DateField.

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.

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.

Events

DateChanged

DateChanged event, raised when the Date property has changed.