Export ISchedulerData to ICal format.
Definition
Namespace:Telerik.WinControls.UI.Scheduler.ICalendar
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerICalendarExporter : ISchedulerExporter
Inheritance: objectSchedulerICalendarExporter
Implements:
Constructors
public SchedulerICalendarExporter()
Properties
Methods
Convert Appointment to list of CalObject.
protected virtual IList<CalObject> AppointmentToCalObject(IEvent appointment)
The appointment.
Returns:IList<CalObject>
The iCalendar components for the appointment and any visible recurrence exceptions.
Exceptions: CalendarParseExceptionCalendarParseException.
Builds a VCALENDAR object from the appointments and their referenced time zones.
protected virtual CalObject CreateCalendar(IEnumerable<IEvent> appointments)
The appointments to write to the calendar.
Returns:The calendar object containing time-zone and appointment components.
The sequence is enumerated once to collect time zones and again to create appointment components, so it must be repeatable.
Creates the ICalendar VCALENDAR object with default properties.
protected virtual CalObject CreateCalendarObject()
A VCALENDAR object initialized with the product, version, scale, and method properties.
Writes the scheduler data as iCalendar text to the supplied stream.
public void Export(ISchedulerData data, Stream stream)
The scheduler data to export.
streamStreamThe destination stream for the iCalendar text.
Implements:
Exports the specified ISchedulerData instance to ICalendar format using the specified TextWriter instance.
public void Export(ISchedulerData data, TextWriter textWriter)
The scheduler data to export.
textWriterTextWriterThe writer that receives the iCalendar text.
Exports the scheduler data as an iCalendar string.
public string Export(ISchedulerData data)
The scheduler data to export.
Returns:The iCalendar representation of the scheduler data.
Implements: