Interface ICalendarBase
Base interface for Calendar test objects.
public interface ICalendarBase
Properties
Date
The date associated with this calendar.
DateTime Date { get; }
Property Value
Remarks
If a date range is selected, the Date property is the start date of the range.
DateRange
The range of dates selected in this calendar.
DateRange DateRange { get; }
Property Value
Remarks
- Supported only for month calendar controls in multi-selection mode.
- If a single date is selected, both DateRange.StartDate and DateRange.EndDate are the selected date.
IsRangeSelected
Indicates whether a range of dates is currently selected in this calendar.
bool IsRangeSelected { get; }
Property Value
Remarks
Supported only for month calendar controls in multi-selection mode.
Time
The time associated with this calendar.
TimeSpan Time { get; }
Property Value
Methods
SetDate(DateTime)
Sets the date of the calendar.
void SetDate(DateTime date)
Parameters
dateDateTimeThe date to set.
SetDateRange(DateRange)
Sets the specified date range using a DateRange value.
void SetDateRange(DateRange dateRange)
Parameters
dateRangeDateRangeThe date range to set.
Remarks
Supported only for month calendar controls in multi-selection mode.
SetDateRange(DateTime, DateTime)
Sets the specified date range with separate start and end DateTime values.
void SetDateRange(DateTime startDate, DateTime endDate)
Parameters
Remarks
Supported only for month calendar controls in multi-selection mode.
SetTime(TimeSpan)
Sets the time of this calendar.
void SetTime(TimeSpan time)
Parameters
timeTimeSpanThe time to set.