Class CalendarDatePicker
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class CalendarDatePicker : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceCalendarDatePicker(WindowsElement)
Initializes a new instance of the CalendarDatePicker class.
Declaration
public CalendarDatePicker(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceCalendarViewFlyout
Gets the element associated with the calendar flyout.
Declaration
public virtual CalendarView CalendarViewFlyout { get; }
Property Value
Type | Description |
---|---|
CalendarView |
SelectedDate
Gets the value of the calendar date picker as a
Declaration
public virtual DateTime? SelectedDate { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
Value
Gets the value of the calendar date picker.
Declaration
public virtual string Value { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceSetDate(DateTime)
Sets the selected date of the calendar view.
Declaration
public virtual void SetDate(DateTime date)
Parameters
Type | Name | Description |
---|---|---|
DateTime | date | The date to set to. |
Exceptions
Type | Condition |
---|---|
ElementNotShownException | Thrown when an element is not shown for the expected locator. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to CalendarDatePicker)
Allows conversion of a
Declaration
public static implicit operator CalendarDatePicker(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
CalendarDatePicker | The CalendarDatePicker. |
Implicit(RemoteWebElement to CalendarDatePicker)
Allows conversion of a
Declaration
public static implicit operator CalendarDatePicker(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
CalendarDatePicker | The CalendarDatePicker. |
Implicit(WindowsElement to CalendarDatePicker)
Allows conversion of a
Declaration
public static implicit operator CalendarDatePicker(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
CalendarDatePicker | The CalendarDatePicker. |