property ICalendar.Content as Component
Retrieves the object's content such as properties, and components.

TypeDescription
Component A Component object that holds the properties and other components.
The Content property gets the control's content ( properties and components ). The Root property gets the root component of the content. The Properties property gets the Properties collection of the current component. The Components property returns the collection of the Components of the current component. The Load / LoadFile / LoadFileFromUnicode method loads properties and components from iCalendar format. The StartLoad / EndLoad events notifies that the Content is starting / ending to be loaded. The Name property of the Component returns the name of the current component. The Content.Name property always returns "Exontrol.ICalendar", while the Root.Name property returns the name of the first component being found in the content ( VCALENDAR ). The Save property gives the iCalendar format of the current content.

For instance, having the following iCalendar format:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
BEGIN:VEVENT
UID:19970610T172345Z-AF23B2@example.com
DTSTAMP:19970610T172345Z
DTSTART:19970714T170000Z
DTEND:19970715T040000Z
SUMMARY:Bastille Day Party
END:VEVENT
END:VCALENDAR

The Content.Components includes the VCALENDAR object, while the Root property refers to the VCALENDAR object directly.