New to Telerik UI for WinFormsStart 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>

Exceptions:

CalendarParseException

CalendarParseException.

Creates a new iCal file.

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

The appointments to write to the calendar.

Returns:

CalObject

Creates the ICalendar VCALENDAR object with default properties.

C#
protected virtual CalObject CreateCalendarObject()
Returns:

CalObject

Exports the specified data.

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

The data.

streamStream

The stream.

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:dataISchedulerDatatextWriterTextWriter

Exports the specified data.

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

The data.

Returns:

string

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.