Class DateField
Assembly: Terminal.Gui.dll
Syntax
public class DateField : TextField, IDisposable, ISupportInitializeNotification, ISupportInitialize
Constructors
|
Edit this page
View Source
DateField()
Declaration
|
Edit this page
View Source
DateField(DateTime)
Declaration
public DateField(DateTime date)
Parameters
|
Edit this page
View Source
DateField(int, int, DateTime, bool)
Declaration
public DateField(int x, int y, DateTime date, bool isShort = false)
Parameters
| Type |
Name |
Description |
| int |
x |
The x coordinate. |
| int |
y |
The y coordinate. |
| DateTime |
date |
Initial date contents. |
| bool |
isShort |
If true, shows only two digits for the year. |
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
Date
Declaration
public DateTime Date { get; set; }
Property Value
|
Edit this page
View Source
Get or set the date format for the widget.
Declaration
public bool IsShortFormat { 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
OnDateChanged(DateTimeEventArgs<DateTime>)
Declaration
public virtual void OnDateChanged(DateTimeEventArgs<DateTime> 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
DateChanged
DateChanged event, raised when the
Date property has changed.
Declaration
public event Action<DateTimeEventArgs<DateTime>> DateChanged
Event Type
Implements