ClassCalHelper
A helper class for Telerik.WinControls.UI.Scheduler.ICalendar.
Definition
Namespace:Telerik.WinControls.UI.Scheduler.ICalendar
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public static class CalHelper
Inheritance: objectCalHelper
Methods
GetAppointmentBackground(string)
Gets the appoitment background.
Declaration
public static AppointmentBackground GetAppointmentBackground(string backgroundName)
Parameters
backgroundName
Name of the background.
Returns
Default return is None
GetAppointmentBackgroundName(AppointmentBackground)
Gets the name of the appoitment background.
Declaration
public static string GetAppointmentBackgroundName(AppointmentBackground background)
Parameters
background
The background.
Returns
Default return is None
GetAppointmentReminder(CalProperty, IEvent)
Gets the reminder time span from its string representation.
Declaration
public static TimeSpan? GetAppointmentReminder(CalProperty reminder, IEvent appointment)
Parameters
reminder
The string representation
appointment
The appointment for which to get the reminder time span.
Returns
The reminder timespan of null if there is no such
GetAppointmentStatus(string)
Gets the appoitment status.
Declaration
public static AppointmentStatus GetAppointmentStatus(string statusName)
Parameters
statusName
Name of the status.
Returns
Default return is Busy
GetAppointmentStatusName(AppointmentStatus)
Gets the name of the appoitment status.
Declaration
public static string GetAppointmentStatusName(AppointmentStatus status)
Parameters
status
The status.
Returns
Default return is Busy
GetModernAppointmentBackground(string)
Gets the appoitment background.
Declaration
public static AppointmentCategory GetModernAppointmentBackground(string backgroundName)
Parameters
backgroundName
Name of the background.
Returns
Default return is None
GetModernAppointmentBackgroundName(AppointmentCategory)
Gets the name of the appoitment modern background.
Declaration
public static string GetModernAppointmentBackgroundName(AppointmentCategory category)
Parameters
category
The background.
Returns
Default return is None
GetReminderString(TimeSpan)
Gets an ICal string representation of the reminder time span.
RecurrenceRuleToRruleString(RecurrenceRule)
Converts the RecurrenceRule to a RRULE string. Note that the RRULE string representation cannot be converted back to RecurrenceRule, as it contains only part of the information held by the RecurrenceRule object. If you need to convert back the string representation, use the RecurrenceRuleToString(RecurrenceRule) method.
Declaration
public static string RecurrenceRuleToRruleString(RecurrenceRule rule)
Parameters
rule
The recurrence rule.
Returns
RecurrenceRuleToRruleString(RecurrenceRule, CultureInfo)
Note that the RRULE string representation cannot be converted back to RecurrenceRule, as it contains only part of the information held by the RecurrenceRule object. If you need to convert back the string representation, use the RecurrenceRuleToString(RecurrenceRule, CultureInfo) method.
Declaration
public static string RecurrenceRuleToRruleString(RecurrenceRule rule, CultureInfo culture)
Parameters
rule
The recurrence rule.
culture
Returns
RecurrenceRuleToString(RecurrenceRule)
Converts the RecurrenceRule to string in the iCalendar format.
Declaration
public static string RecurrenceRuleToString(RecurrenceRule rule)
Parameters
rule
The recurrence rule.
Returns
RecurrenceRuleToString(RecurrenceRule, CultureInfo)
Converts the RecurrenceRule to string in the iCalendar format.
Declaration
public static string RecurrenceRuleToString(RecurrenceRule rule, CultureInfo culture)
Parameters
rule
The recurrence rule.
culture
Returns
TryParseRecurrenceRule(string, out RecurrenceRule)
Tries to parse recurrence pattern.
Declaration
public static bool TryParseRecurrenceRule(string valueToParse, out RecurrenceRule result)
Parameters
valueToParse
The string to parse.
result
The result.
Returns