Interface ICalendarBase
Base interface for Calendar test objects.
Namespace: HP.LFT.SDK
Assembly: HP.LFT.SDK.dll
Syntax
public interface ICalendarBase
Properties
Date
The date associated with this calendar.
Declaration
DateTime Date { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
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.
Declaration
DateRange DateRange { get; }
Property Value
| Type | Description |
|---|---|
| DateRange |
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.
Declaration
bool IsRangeSelected { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Supported only for month calendar controls in multi-selection mode.
Time
The time associated with this calendar.
Declaration
TimeSpan Time { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
Methods
SetDate(DateTime)
Sets the date of the calendar.
Declaration
void SetDate(DateTime date)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | date | The date to set. |
SetDateRange(DateRange)
Sets the specified date range using a DateRange value.
Declaration
void SetDateRange(DateRange dateRange)
Parameters
| Type | Name | Description |
|---|---|---|
| DateRange | dateRange | The 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.
Declaration
void SetDateRange(DateTime startDate, DateTime endDate)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | startDate | The start date of the range. |
| DateTime | endDate | The end date of the range. |
Remarks
Supported only for month calendar controls in multi-selection mode.
SetTime(TimeSpan)
Sets the time of this calendar.
Declaration
void SetTime(TimeSpan time)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | time | The time to set. |