CalHelper
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
Gets the appoitment background.
public static AppointmentBackground GetAppointmentBackground(string backgroundName)
Name of the background.
Returns:Default return is None
Gets the name of the appoitment background.
public static string GetAppointmentBackgroundName(AppointmentBackground background)
The background.
Returns:Default return is None
Gets the reminder time span from its string representation.
public static TimeSpan? GetAppointmentReminder(CalProperty reminder, IEvent appointment)
The string representation
appointmentIEventThe appointment for which to get the reminder time span.
Returns:The reminder timespan of null if there is no such
Gets the appoitment status.
public static AppointmentStatus GetAppointmentStatus(string statusName)
Name of the status.
Returns:Default return is Busy
Gets the name of the appoitment status.
public static string GetAppointmentStatusName(AppointmentStatus status)
The status.
Returns:Default return is Busy
Gets the appoitment background.
public static AppointmentCategory GetModernAppointmentBackground(string backgroundName)
Name of the background.
Returns:Default return is None
Gets the name of the appoitment modern background.
public static string GetModernAppointmentBackgroundName(AppointmentCategory category)
The background.
Returns:Default return is None
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.
public static string RecurrenceRuleToRruleString(RecurrenceRule rule, CultureInfo culture)
The recurrence rule.
cultureCultureInfoReturns: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.
public static string RecurrenceRuleToRruleString(RecurrenceRule rule)
The recurrence rule.
Returns:Converts the RecurrenceRule to string in the iCalendar format.
public static string RecurrenceRuleToString(RecurrenceRule rule, CultureInfo culture)
The recurrence rule.
cultureCultureInfoReturns:Converts the RecurrenceRule to string in the iCalendar format.
public static string RecurrenceRuleToString(RecurrenceRule rule)
The recurrence rule.
Returns:Tries to parse recurrence pattern.
public static bool TryParseRecurrenceRule(string valueToParse, out RecurrenceRule result)
The string to parse.
resultRecurrenceRuleThe result.
Returns: