Class
SchedulerICalendarImporter

Import ISchedulerData from ICalendar format.

Definition

Namespace:Telerik.WinControls.UI.Scheduler.ICalendar

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class SchedulerICalendarImporter : ISchedulerImporter

Inheritance: objectSchedulerICalendarImporter

Implements: ISchedulerImporter

Constructors

SchedulerICalendarImporter()

Initializes a new instance of the SchedulerICalendarImporter class.

Declaration

cs-api-definition
public SchedulerICalendarImporter()

SchedulerICalendarImporter(IAppointmentFactory)

Initializes a new instance of the SchedulerICalendarImporter class.

Declaration

cs-api-definition
public SchedulerICalendarImporter(IAppointmentFactory appointmentFactory)

Parameters

appointmentFactory

IAppointmentFactory

The appointment factory.

SchedulerICalendarImporter(bool)

Initializes a new instance of the SchedulerICalendarImporter class.

Declaration

cs-api-definition
public SchedulerICalendarImporter(bool ignoreParseErrors)

Parameters

ignoreParseErrors

bool

If set to true ignore appointment that can not parse.

SchedulerICalendarImporter(bool, IAppointmentFactory)

Initializes a new instance of the SchedulerICalendarImporter class.

Declaration

cs-api-definition
public SchedulerICalendarImporter(bool ignoreParseErrors, IAppointmentFactory appointmentFactory)

Parameters

ignoreParseErrors

bool

if set to true ignore appointment that can not parse.

appointmentFactory

IAppointmentFactory

The appointment factory.

Properties

Encoding

Gets or sets the encoding.

Declaration

cs-api-definition
public Encoding Encoding { get; set; }

Property Value

Encoding

The encoding.

Methods

ApplyAdditionalData(IEvent, CalObject)

Writes the additional data for appointment.

Declaration

cs-api-definition
protected virtual void ApplyAdditionalData(IEvent appointment, CalObject calObject)

Parameters

appointment

IEvent

The appointment.

calObject

CalObject

The cal object.

ApplyAppointmentData(IEvent, CalObject, IDictionary<string, TimeZoneInfo>)

Sets the appointment data.

Declaration

cs-api-definition
protected virtual void ApplyAppointmentData(IEvent appointment, CalObject calObject, IDictionary<string, TimeZoneInfo> timeZones)

Parameters

appointment

IEvent

The appointment.

calObject

CalObject

The cal object.

timeZones

IDictionary<string, TimeZoneInfo>

The time zones.

Exceptions

CalendarParseException

CalendarParseException.

GetAppointments(CalObject)

Gets the appointments from an CalObject instance.

Declaration

cs-api-definition
public virtual IEnumerable<IEvent> GetAppointments(CalObject calendar)

Parameters

calendar

CalObject

Returns

IEnumerable<IEvent>

GetAppointments(CalObject, ICollection<IEvent>)

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

Declaration

cs-api-definition
protected virtual void GetAppointments(CalObject calendar, ICollection<IEvent> collection)

Parameters

calendar

CalObject

collection

ICollection<IEvent>

Exceptions

CalendarParseException

CalendarParseException.

Import(ISchedulerData, Stream)

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

Declaration

cs-api-definition
public virtual void Import(ISchedulerData data, Stream stream)

Parameters

data

ISchedulerData

stream

Stream

Implements ISchedulerImporter.Import(ISchedulerData, Stream)

Import(ISchedulerData, TextReader)

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

Declaration

cs-api-definition
public virtual void Import(ISchedulerData data, TextReader textReader)

Parameters

data

ISchedulerData

textReader

TextReader

Import(ISchedulerData, string)

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

Declaration

cs-api-definition
public virtual void Import(ISchedulerData data, string str)

Parameters

data

ISchedulerData

str

string

Implements ISchedulerImporter.Import(ISchedulerData, string)