Component object
The Component object holds a component object of iCalendar format. The body of the iCalendar object consists of a sequence of calendar properties and one or more calendar components. The calendar properties are attributes that apply to the calendar object as a whole. The calendar components are collections of properties that express a particular calendar semantic. For example, the calendar component can specify an event, a to-do, a journal entry, time zone information, free/busy time information, or an alarm.

The following is a simple example of an iCalendar component:

BEGIN:VEVENT
UID:19970610T172345Z-AF23B2@example.com
DTSTAMP:19970610T172345Z
DTSTART:19970714T170000Z
DTEND:19970715T040000Z
SUMMARY:Bastille Day Party
END:VEVENT

The Component object supports the following properties and methods:

NameDescription
ClearClears the component, by removing the name, properties and components.
ComponentsRetrieves the child components of the current component.
NameIndicates the component's name.
ParentRetrieves the parent of the component.
PropertiesRetrieves the properties of the current component.
toICalendarGets the iCalendar representation of the component.
UserDataIndicates any extra data associated with the component.