Class TimeField
Assembly: Terminal.Gui.dll
Syntax
public class TimeField : TextField, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
|
Edit this page
View Source
TimeField()
Declaration
|
Edit this page
View Source
TimeField(int, int, TimeSpan, bool)
Declaration
public TimeField(int x, int y, TimeSpan time, bool isShort = false)
Parameters
| Type |
Name |
Description |
| int |
x |
The x coordinate. |
| int |
y |
The y coordinate. |
| TimeSpan |
time |
Initial time. |
| bool |
isShort |
If true, the seconds are hidden. Sets the IsShortFormat property. |
|
Edit this page
View Source
TimeField(TimeSpan)
Declaration
public TimeField(TimeSpan time)
Parameters
| Type |
Name |
Description |
| TimeSpan |
time |
Initial time |
Properties
|
Edit this page
View Source
CursorPosition
Sets or gets the current cursor position.
Declaration
public override int CursorPosition { get; set; }
Property Value
Overrides
|
Edit this page
View Source
Get or sets whether
TimeField uses the short or long time format.
Declaration
public bool IsShortFormat { get; set; }
Property Value
|
Edit this page
View Source
Time
Declaration
public TimeSpan Time { get; set; }
Property Value
Methods
|
Edit this page
View Source
DeleteCharLeft(bool)
Deletes the left character.
Declaration
public override void DeleteCharLeft(bool useOldCursorPos = true)
Parameters
| Type |
Name |
Description |
| bool |
useOldCursorPos |
|
Overrides
|
Edit this page
View Source
DeleteCharRight()
Deletes the right character.
Declaration
public override void DeleteCharRight()
Overrides
|
Edit this page
View Source
MouseEvent(MouseEvent)
Method invoked when a mouse event is generated
Declaration
public override bool MouseEvent(MouseEvent ev)
Parameters
Returns
| Type |
Description |
| bool |
true, if the event was handled, false otherwise. |
Overrides
|
Edit this page
View Source
OnTimeChanged(DateTimeEventArgs<TimeSpan>)
Event firing method that invokes the
TimeChanged event.
Declaration
public virtual void OnTimeChanged(DateTimeEventArgs<TimeSpan> args)
Parameters
|
Edit this page
View Source
ProcessKey(KeyEvent)
Declaration
public override bool ProcessKey(KeyEvent kb)
Parameters
Returns
Overrides
Events
|
Edit this page
View Source
TimeChanged
TimeChanged event, raised when the Date has changed.
Declaration
public event Action<DateTimeEventArgs<TimeSpan>> TimeChanged
Event Type
Implements