ClassCalendarImporterBase
Contains base class for ICalendar import functionality.
Definition
Namespace:Telerik.Windows.Controls.ScheduleView.ICalendar
Assembly:Telerik.Windows.Controls.ScheduleView.dll
Syntax:
public abstract class CalendarImporterBase
Inheritance: objectCalendarImporterBase
Derived Classes:
Constructors
CalendarImporterBase(bool)
Initializes a new instance of the CalendarImporterBase class.
Declaration
protected CalendarImporterBase(bool ignoreParseErrors)
Parameters
ignoreParseErrors
Methods
ApplyAdditionalData(IAppointment, CalObject)
Writes the additional data for appointment.
Declaration
protected abstract IAppointment ApplyAdditionalData(IAppointment appointment, CalObject calObject)
Parameters
appointment
The appointment.
calObject
The cal object.
Returns
ApplyAppointmentData(IAppointment, CalObject, IDictionary<string, TimeZoneInfo>)
Sets the appointment data.
Declaration
protected virtual IAppointment ApplyAppointmentData(IAppointment appointment, CalObject calObject, IDictionary<string, TimeZoneInfo> timeZones)
Parameters
appointment
The appointment.
calObject
The cal object.
timeZones
IDictionary<string, TimeZoneInfo>
The time zones.
Returns
Exceptions
CalendarParseException.
CreateNewAppointment(CalObject)
Creates new appointment. It can be overridden with the custom appointment.
Declaration
protected virtual IAppointment CreateNewAppointment(CalObject vevent)
Parameters
vevent
Returns
CreateNewResource(CalObject)
Creates new resource. It can be overridden with the custom resource.
GetAppointments(CalObject)
Gets the parsed appointments from CalObject object.
Declaration
public virtual IEnumerable<IAppointment> GetAppointments(CalObject calendar)
Parameters
calendar
The calendar object.
Returns
List of parsed appointments.
Exceptions
CalendarParseException.
Import(TextReader)
Imports the specified text reader.
Declaration
public IEnumerable<IAppointment> Import(TextReader textReader)
Parameters
textReader
The text reader.
Returns
Collection of parsed IAppointment objects.
Exceptions
Can not parse CalObject objects.