iCalendarExporter Class
An object that transforms scheduler appointments into the event calendar components in iCalendar format.
Namespace: DevExpress.XtraScheduler.iCalendar
Assembly: DevExpress.XtraScheduler.v14.2.Core.dll
#Declaration
#Remarks
The main functionality of the iCalendarExporter class is provided by the AppointmentExporter.Export method.
Specify the scheduler storage via the SchedulerControl.GetCoreStorage method to supply appointments for export when creating an iCalendarExporter instance. To save custom appointment properties as non-standard properties in the iCalendar format , specify iCalendarExporter.CustomPropertyIndentifier.
To change properties before they are written to output, subscribe to the iCalendarExporter.CalendarStructureCreated event. Its iCalendarStructureCreatedEventArgs.Calendars argument provides access to iCalendar structures.
You can cancel export for a particular calendar component by handling the AppointmentExporter.AppointmentExporting event.
#Examples
The following example demonstrates how to export data from a scheduler to the iCalendar format. To do this, add a reference to the DevExpress.XtraScheduler.v14.2.iCalendarExchange.dll library (you can find this assembly file in C:\Program Files (x86)\DevExpress 14.2\Components\Bin\Silverlight), create an iCalendarExporter class instance, pass the scheduler storage accessed via SchedulerControl.GetCoreStorage to its constructor and call the AppointmentExporter.Export method with a parameter set to a stream that specifies the .ics file selected by an end-user.