Interface ICalendar
A calendar control in a SAP GUI for Windows application.
Inherited Members
Namespace: HP.LFT.SDK.SAP.GUI
Assembly: HP.LFT.SDK.dll
Syntax
public interface ICalendar : IElement, ITestObject, ITestObjectDescriber, ILocationInfoProvider, ISupportsNativeObject, IEnabledProvider
Properties
AttachedText
The static text attached to the calendar.
Declaration
string AttachedText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Date
The date selected in the 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 the calendar.
Declaration
DateRange DateRange { get; }
Property Value
| Type | Description |
|---|---|
| DateRange |
Remarks
If a single date is selected, both DateRange.StartDate and DateRange.EndDate are the selected date.
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)
Selects the date range by DateRange object.
Declaration
void SetDateRange(DateRange dateRange)
Parameters
| Type | Name | Description |
|---|---|---|
| DateRange | dateRange | The date range to set. |
Remarks
The actual date range can be one full week or one full month.
SetDateRange(DateTime, DateTime)
Selects the date range by start and end date.
Declaration
void SetDateRange(DateTime firstDate, DateTime lastDate)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime | firstDate | The start date. |
| DateTime | lastDate | The end date. |
Remarks
The actual date range can be one full week or one full month.