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

Contains base class for ICalendar import functionality.

Definition

Namespace:Telerik.Windows.Controls.ScheduleView.ICalendar

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public abstract class CalendarImporterBase

Inheritance: objectCalendarImporterBase

Derived Classes: AppointmentCalendarImporter

Constructors

Initializes a new instance of the CalendarImporterBase class.

C#
protected CalendarImporterBase(bool ignoreParseErrors)
Parameters:ignoreParseErrorsbool

Methods

Writes the additional data for appointment.

C#
protected abstract IAppointment ApplyAdditionalData(IAppointment appointment, CalObject calObject)
Parameters:appointmentIAppointment

The appointment.

calObjectCalObject

The cal object.

Returns:

IAppointment

Sets the appointment data.

C#
protected virtual IAppointment ApplyAppointmentData(IAppointment appointment, CalObject calObject, IDictionary<string, TimeZoneInfo> timeZones)
Parameters:appointmentIAppointment

The appointment.

calObjectCalObject

The cal object.

timeZonesIDictionary<string, TimeZoneInfo>

The time zones.

Returns:

IAppointment

Exceptions:

CalendarParseException

CalendarParseException.

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

C#
protected virtual IAppointment CreateNewAppointment(CalObject vevent)
Parameters:veventCalObjectReturns:

IAppointment

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

C#
protected virtual IResource CreateNewResource(CalObject vevent)
Parameters:veventCalObjectReturns:

IResource

Gets the parsed appointments from CalObject object.

C#
public virtual IEnumerable<IAppointment> GetAppointments(CalObject calendar)
Parameters:calendarCalObject

The calendar object.

Returns:

IEnumerable<IAppointment>

List of parsed appointments.

Exceptions:

CalendarParseException

CalendarParseException.

Imports the specified text reader.

C#
public IEnumerable<IAppointment> Import(TextReader textReader)
Parameters:textReaderTextReader

The text reader.

Returns:

IEnumerable<IAppointment>

Collection of parsed IAppointment objects.

Exceptions:

CalendarParseException

Can not parse CalObject objects.