Table of Contents

Interface ICalendarBase

Namespace
HP.LFT.SDK
Assembly
HP.LFT.SDK.dll

Base interface for Calendar test objects.

public interface ICalendarBase

Properties

Date

The date associated with this calendar.

DateTime Date { get; }

Property Value

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.

DateRange DateRange { get; }

Property Value

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.

bool IsRangeSelected { get; }

Property Value

bool

Remarks

Supported only for month calendar controls in multi-selection mode.

Time

The time associated with this calendar.

TimeSpan Time { get; }

Property Value

TimeSpan

Methods

SetDate(DateTime)

Sets the date of the calendar.

void SetDate(DateTime date)

Parameters

date DateTime

The date to set.

SetDateRange(DateRange)

Sets the specified date range using a DateRange value.

void SetDateRange(DateRange dateRange)

Parameters

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.

void SetDateRange(DateTime startDate, DateTime endDate)

Parameters

startDate DateTime

The start date of the range.

endDate DateTime

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.

void SetTime(TimeSpan time)

Parameters

time TimeSpan

The time to set.