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.

TimeField(int, int, TimeSpan, bool)

Initializes a new instance of TimeField using Absolute positioning.

TimeField(TimeSpan)

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 left character.

DeleteCharRight()

Deletes the right character.

MouseEvent(MouseEvent)

Method invoked when a mouse event is generated

OnTimeChanged(DateTimeEventArgs<TimeSpan>)

Event firing method that invokes the TimeChanged event.

ProcessKey(KeyEvent)

Processes key presses for the TextField.

Events

TimeChanged

TimeChanged event, raised when the Date has changed.