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

A helper class for Telerik.WinControls.UI.Scheduler.ICalendar.

Definition

Namespace:Telerik.WinControls.UI.Scheduler.ICalendar

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public static class CalHelper

Inheritance: objectCalHelper

Methods

Gets the appoitment background.

C#
public static AppointmentBackground GetAppointmentBackground(string backgroundName)
Parameters:backgroundNamestring

Name of the background.

Returns:

AppointmentBackground

Default return is None

Gets the name of the appoitment background.

C#
public static string GetAppointmentBackgroundName(AppointmentBackground background)
Parameters:backgroundAppointmentBackground

The background.

Returns:

string

Default return is None

Gets the reminder time span from its string representation.

C#
public static TimeSpan? GetAppointmentReminder(CalProperty reminder, IEvent appointment)
Parameters:reminderCalProperty

The string representation

appointmentIEvent

The appointment for which to get the reminder time span.

Returns:

TimeSpan?

The reminder timespan of null if there is no such

Gets the appoitment status.

C#
public static AppointmentStatus GetAppointmentStatus(string statusName)
Parameters:statusNamestring

Name of the status.

Returns:

AppointmentStatus

Default return is Busy

Gets the name of the appoitment status.

C#
public static string GetAppointmentStatusName(AppointmentStatus status)
Parameters:statusAppointmentStatus

The status.

Returns:

string

Default return is Busy

Gets the appoitment background.

C#
public static AppointmentCategory GetModernAppointmentBackground(string backgroundName)
Parameters:backgroundNamestring

Name of the background.

Returns:

AppointmentCategory

Default return is None

Gets the name of the appoitment modern background.

C#
public static string GetModernAppointmentBackgroundName(AppointmentCategory category)
Parameters:categoryAppointmentCategory

The background.

Returns:

string

Default return is None

Gets an ICal string representation of the reminder time span.

C#
public static string GetReminderString(TimeSpan reminder)
Parameters:reminderTimeSpan

The time span.

Returns:

string

The string representation.

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.

C#
public static string RecurrenceRuleToRruleString(RecurrenceRule rule, CultureInfo culture)
Parameters:ruleRecurrenceRule

The recurrence rule.

cultureCultureInfo
Returns:

string

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.

C#
public static string RecurrenceRuleToRruleString(RecurrenceRule rule)
Parameters:ruleRecurrenceRule

The recurrence rule.

Returns:

string

Converts the RecurrenceRule to string in the iCalendar format.

C#
public static string RecurrenceRuleToString(RecurrenceRule rule, CultureInfo culture)
Parameters:ruleRecurrenceRule

The recurrence rule.

cultureCultureInfo
Returns:

string

Converts the RecurrenceRule to string in the iCalendar format.

C#
public static string RecurrenceRuleToString(RecurrenceRule rule)
Parameters:ruleRecurrenceRule

The recurrence rule.

Returns:

string

Tries to parse recurrence pattern.

C#
public static bool TryParseRecurrenceRule(string valueToParse, out RecurrenceRule result)
Parameters:valueToParsestring

The string to parse.

resultRecurrenceRule

The result.

Returns:

bool