New to Telerik UI for WinForms? Start a free 30-day trial

Export ISchedulerData to ICal format.

Definition

Namespace:Telerik.WinControls.UI.Scheduler.ICalendar

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerICalendarExporter : ISchedulerExporter

Inheritance: objectSchedulerICalendarExporter

Implements: ISchedulerExporter

Constructors

C#
public SchedulerICalendarExporter()

Properties

Gets or sets the encoding.

C#
public Encoding Encoding { get; set; }
Property Value:

The encoding.

Methods

Convert Appointment to list of CalObject.

C#
protected virtual IList<CalObject> AppointmentToCalObject(IEvent appointment)
Parameters:appointmentIEvent

The appointment.

Returns:

IList<CalObject>

The iCalendar components for the appointment and any visible recurrence exceptions.

Exceptions: CalendarParseException

CalendarParseException.

Builds a VCALENDAR object from the appointments and their referenced time zones.

C#
protected virtual CalObject CreateCalendar(IEnumerable<IEvent> appointments)
Parameters:appointmentsIEnumerable<IEvent>

The appointments to write to the calendar.

Returns:

CalObject

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.

C#
protected virtual CalObject CreateCalendarObject()
Returns:

CalObject

A VCALENDAR object initialized with the product, version, scale, and method properties.

Writes the scheduler data as iCalendar text to the supplied stream.

C#
public void Export(ISchedulerData data, Stream stream)
Parameters:dataISchedulerData

The scheduler data to export.

streamStream

The destination stream for the iCalendar text.

Implements: ISchedulerExporter.Export(ISchedulerData, Stream)

Exports the specified ISchedulerData instance to ICalendar format using the specified TextWriter instance.

C#
public void Export(ISchedulerData data, TextWriter textWriter)
Parameters:dataISchedulerData

The scheduler data to export.

textWriterTextWriter

The writer that receives the iCalendar text.

Exports the scheduler data as an iCalendar string.

C#
public string Export(ISchedulerData data)
Parameters:dataISchedulerData

The scheduler data to export.

Returns:

string

The iCalendar representation of the scheduler data.

Implements: ISchedulerExporter.Export(ISchedulerData)

Writes the additional data for appointment.

C#
protected virtual void WriteAdditionalDataForAppointment(IEvent appointment, CalObject calObject)
Parameters:appointmentIEvent

The appointment.

calObjectCalObject

The cal object.