Version

Activity Class

Represents an Activity for a specific date and time.
Syntax
Remarks

An Activity object maintains information regarding a event or task for a particular date and time. The start and end of the Activity are stored in the StartDateTime or EndDateTime respectively. To change the start of the Activity without changing the duration, use the OffsetStartTime method.

The AllDayEvent property may be used to indicate that an Activity occurs on a day or range of days but is not restricted to a particular time within those days. By default, AllDayEvent Activities are rendered differently than non-AllDayEvent Activities. The appearance of all AllDayEvent type Activities can be adjusted by changing the AllDayEventAppearance. The AppointmentStyle can be used to change the style for all Activities. The style of an Activity can also be controlled on an individual basis by adjusting its Style

A new Activity, can be created by either creating a new instance of an Activity(SmartDate,SmartDate) and adding it to the WebScheduleInfo.Activities collection or using the %ActivitiesCollection.Add(SmartDate, SmartDate, string)% method of the collection. An Activity can also be created using the AppointmentDialog. To display the AppointmentDialog for a new Activity, use the %WebScheduleInfo.DisplayAppointmentDialog(SmartDate, SmartDate, bool). The WebScheduleInfo.DisplayAppointmentDialog(Activity)% overload may be used to display the Activity information for an existing Activity.

An Activity can have a Reminder associated with it. When the StartDateTime is reached, the Activity.Reminder will be displayed if enabled.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also