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.

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.

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.

OnTimeChanged(DateTimeEventArgs<TimeSpan>)

Event firing method that invokes the TimeChanged event.

Events

TimeChanged

TimeChanged event, raised when the Date has changed.