DateTimeElement Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An element that can be used to edit dates and times.
public class DateTimeElement : MonoTouch.Dialog.StringElement
type DateTimeElement = class
inherit StringElement
- Inheritance
- Derived
Remarks
This is the base class for both the DateElement and the TimeElement.
Constructors
DateTimeElement(String, DateTime) |
Constructs the DateElement. |
Fields
Alignment | (Inherited from StringElement) |
BackgroundColor | |
Caption |
The caption to display for this given element (Inherited from Element) |
datePicker | |
DateValue |
The current DateTime value in the editor. |
fmt |
An internal date formatter that has been preconfigured for short date time renderings. |
MinuteInterval | |
Parent |
Handle to the container object. (Inherited from Element) |
Value | (Inherited from StringElement) |
Properties
CellKey |
Subclasses that override the GetCell method should override this method as well (Inherited from Element) |
IndexPath |
Returns the IndexPath of a given element. This is only valid for leaf elements, it does not work for a toplevel RootElement or a Section of if the Element has not been attached yet. (Inherited from Element) |
Methods
CreatePicker() | |
Deselected(DialogViewController, UITableView, NSIndexPath) | (Inherited from Element) |
Dispose() | (Inherited from Element) |
Dispose(Boolean) |
Releases the resources associated with this DateTimeElement. |
FormatDate(DateTime) |
Formats the date, the return is used as the Value for the cell rendering. |
GetActiveCell() | (Inherited from Element) |
GetCell(UITableView) | |
GetContainerTableView() | (Inherited from Element) |
GetDateWithKind(DateTime) |
Returns either the provided date time if the DateTimeKind is specified, otherwise makes ita DateTimeKind.Local |
GetImmediateRootElement() |
If the cell is attached will return the immediate RootElement (Inherited from Element) |
Matches(String) |
Method invoked to determine if the cell matches the given text, never invoked with a null value or an empty string. (Inherited from StringElement) |
Selected(DialogViewController, UITableView, NSIndexPath) | |
Summary() | (Inherited from StringElement) |
Events
DateSelected |
Event raised when a new date is selected by the picker. |
Tapped | (Inherited from StringElement) |