Class TimeField
Time editing View
Implements
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Terminal.Gui
Assembly: Terminal.Gui.dll
Syntax
public class TimeField : TextField, IEnumerable
Remarks
Constructors
TimeField(DateTime)
Initializes a new instance of TimeField
Declaration
public TimeField(DateTime time)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | time |
TimeField(Int32, Int32, DateTime, Boolean)
Initializes a new instance of TimeField at an absolute position and fixed size.
Declaration
public TimeField(int x, int y, DateTime time, bool isShort = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The x coordinate. |
System.Int32 | y | The y coordinate. |
System.DateTime | time | Initial time contents. |
System.Boolean | isShort | If true, the seconds are hidden. |
Properties
IsShortFormat
Get or set the data format for the widget.
Declaration
public bool IsShortFormat { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Time
Gets or sets the time of the TimeField.
Declaration
public DateTime Time { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Remarks
Methods
MouseEvent(MouseEvent)
Declaration
public override bool MouseEvent(MouseEvent ev)
Parameters
Type | Name | Description |
---|---|---|
MouseEvent | ev |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
ProcessKey(KeyEvent)
Declaration
public override bool ProcessKey(KeyEvent kb)
Parameters
Type | Name | Description |
---|---|---|
KeyEvent | kb |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.Collections.IEnumerable