Class DatePicker
Defines a
Implements
Inherited Members
Namespace: Legerity.Android.Elements.Core
Assembly: Legerity.Android.dll
Syntax
public class DatePicker : AndroidElementWrapper, IElementWrapper<AndroidElement>
Constructors
| Improve this Doc View SourceDatePicker(AndroidElement)
Initializes a new instance of the DatePicker class.
Declaration
public DatePicker(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | element | The |
Properties
| Improve this Doc View SourceDateTextView
Gets the element associated with the date text.
This will be in the format, 'ddd, MMM d'.
Declaration
public virtual TextView DateTextView { get; }
Property Value
Type | Description |
---|---|
TextView |
DayPickerView
Gets the element associated with the day picker.
Declaration
public virtual View DayPickerView { get; }
Property Value
Type | Description |
---|---|
View |
NextMonthButton
Gets the element associated with the next month button.
Declaration
public virtual Button NextMonthButton { get; }
Property Value
Type | Description |
---|---|
Button |
PreviousMonthButton
Gets the element associated with the previous month button.
Declaration
public virtual Button PreviousMonthButton { get; }
Property Value
Type | Description |
---|---|
Button |
SelectedDate
Gets the selected date/time value.
Declaration
public virtual DateTime SelectedDate { get; }
Property Value
Type | Description |
---|---|
DateTime |
YearTextView
Gets the element associated with the year text.
This will be in the format, 'YYYY'.
Declaration
public virtual TextView YearTextView { get; }
Property Value
Type | Description |
---|---|
TextView |
Methods
| Improve this Doc View SourceSetDate(DateTime)
Sets the selected date of the date picker.
Declaration
public virtual void SetDate(DateTime date)
Parameters
Type | Name | Description |
---|---|---|
DateTime | date | The date to set to. |
Operators
| Improve this Doc View SourceImplicit(AndroidElement to DatePicker)
Allows conversion of a
Declaration
public static implicit operator DatePicker(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | element | The |
Returns
Type | Description |
---|---|
DatePicker | The DatePicker. |
Implicit(AppiumWebElement to DatePicker)
Allows conversion of a
Declaration
public static implicit operator DatePicker(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
DatePicker | The DatePicker. |
Implicit(RemoteWebElement to DatePicker)
Allows conversion of a
Declaration
public static implicit operator DatePicker(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
DatePicker | The DatePicker. |