Class
CalendarImporterBase

Contains base class for ICalendar import functionality.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView.ICalendar

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public abstract class CalendarImporterBase

Inheritance: objectCalendarImporterBase

Derived Classes: AppointmentCalendarImporter

Constructors

CalendarImporterBase(bool)

Initializes a new instance of the CalendarImporterBase class.

Declaration

cs-api-definition
protected CalendarImporterBase(bool ignoreParseErrors)

Parameters

ignoreParseErrors

bool

Methods

ApplyAdditionalData(IAppointment, CalObject)

Writes the additional data for appointment.

Declaration

cs-api-definition
protected abstract IAppointment ApplyAdditionalData(IAppointment appointment, CalObject calObject)

Parameters

appointment

IAppointment

The appointment.

calObject

CalObject

The cal object.

Returns

IAppointment

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

Sets the appointment data.

Declaration

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

Parameters

appointment

IAppointment

The appointment.

calObject

CalObject

The cal object.

timeZones

IDictionary<string, TimeZoneInfo>

The time zones.

Returns

IAppointment

Exceptions

CalendarParseException

CalendarParseException.

CreateNewAppointment(CalObject)

Creates new appointment. It can be overridden with the custom appointment.

Declaration

cs-api-definition
protected virtual IAppointment CreateNewAppointment(CalObject vevent)

Parameters

vevent

CalObject

Returns

IAppointment

CreateNewResource(CalObject)

Creates new resource. It can be overridden with the custom resource.

Declaration

cs-api-definition
protected virtual IResource CreateNewResource(CalObject vevent)

Parameters

vevent

CalObject

Returns

IResource

GetAppointments(CalObject)

Gets the parsed appointments from CalObject object.

Declaration

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

Parameters

calendar

CalObject

The calendar object.

Returns

IEnumerable<IAppointment>

List of parsed appointments.

Exceptions

CalendarParseException

CalendarParseException.

Import(TextReader)

Imports the specified text reader.

Declaration

cs-api-definition
public IEnumerable<IAppointment> Import(TextReader textReader)

Parameters

textReader

TextReader

The text reader.

Returns

IEnumerable<IAppointment>

Collection of parsed IAppointment objects.

Exceptions

CalendarParseException

Can not parse CalObject objects.