Table of Contents

Class TimeField

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Time editing View

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

Remarks

The TimeFieldView provides time editing functionality with mouse support.

Constructors

TimeField()

Initializes a new instance of TimeField using Computed positioning.

Properties

CursorPosition

Sets or gets the current cursor position.

IsShortFormat

Get or sets whether TimeField uses the short or long time format.

Time

Gets or sets the time of the TimeField.

Methods

DeleteCharLeft(bool)

Deletes the character to the left.

DeleteCharRight()

Deletes the character to the right.

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.

OnTimeChanged(DateTimeEventArgs<TimeSpan>)

Event firing method that invokes the TimeChanged event.

Events

TimeChanged

TimeChanged event, raised when the Date has changed.