New to Telerik UI for WinFormsStart a free 30-day trial

Import ISchedulerData from ICalendar format.

Definition

Namespace:Telerik.WinControls.UI.Scheduler.ICalendar

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerICalendarImporter : ISchedulerImporter

Inheritance: objectSchedulerICalendarImporter

Implements: ISchedulerImporter

Constructors

Initializes a new instance of the SchedulerICalendarImporter class.

C#
public SchedulerICalendarImporter()

Initializes a new instance of the SchedulerICalendarImporter class.

C#
public SchedulerICalendarImporter(bool ignoreParseErrors, IAppointmentFactory appointmentFactory)
Parameters:ignoreParseErrorsbool

if set to true ignore appointment that can not parse.

appointmentFactoryIAppointmentFactory

The appointment factory.

Initializes a new instance of the SchedulerICalendarImporter class.

C#
public SchedulerICalendarImporter(bool ignoreParseErrors)
Parameters:ignoreParseErrorsbool

If set to true ignore appointment that can not parse.

Initializes a new instance of the SchedulerICalendarImporter class.

C#
public SchedulerICalendarImporter(IAppointmentFactory appointmentFactory)
Parameters:appointmentFactoryIAppointmentFactory

The appointment factory.

Properties

Gets or sets the encoding.

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

The encoding.

Methods

Writes the additional data for appointment.

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

The appointment.

calObjectCalObject

The cal object.

Sets the appointment data.

C#
protected virtual void ApplyAppointmentData(IEvent appointment, CalObject calObject, IDictionary<string, TimeZoneInfo> timeZones)
Parameters:appointmentIEvent

The appointment.

calObjectCalObject

The cal object.

timeZonesIDictionary<string, TimeZoneInfo>

The time zones.

Exceptions:

CalendarParseException

CalendarParseException.

Gets the parsed appointments from CalObject object and stores them into the specified collection.

C#
protected virtual void GetAppointments(CalObject calendar, ICollection<IEvent> collection)
Parameters:calendarCalObjectcollectionICollection<IEvent>Exceptions:

CalendarParseException

CalendarParseException.

Gets the appointments from an CalObject instance.

C#
public virtual IEnumerable<IEvent> GetAppointments(CalObject calendar)
Parameters:calendarCalObjectReturns:

IEnumerable<IEvent>

Imports iCalendar data form a stream into the specified ISchedulerData implementation.

C#
public virtual void Import(ISchedulerData data, Stream stream)
Parameters:dataISchedulerDatastreamStream

Implements: ISchedulerImporter.Import(ISchedulerData, Stream)

Imports iCalendar data from a string into the specified ISchedulerData implementation.

C#
public virtual void Import(ISchedulerData data, string str)
Parameters:dataISchedulerDatastrstring

Implements: ISchedulerImporter.Import(ISchedulerData, string)

Imports iCalendar data using the specified TextReader instance into the specified ISchedulerData implementation.

C#
public virtual void Import(ISchedulerData data, TextReader textReader)
Parameters:dataISchedulerDatatextReaderTextReader