CalProperty
ICalendar Property object.
Definition
Namespace:Telerik.WinControls.UI.Scheduler.ICalendar
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class CalProperty : IEquatable<CalProperty>
Inheritance: objectCalProperty
Implements:
Constructors
Initializes a new instance of the CalProperty class.
Properties
Gets or sets the parameters.
public Dictionary<string, string> Parameters { get; }
The parameters.
Methods
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CalProperty other)
An object to compare with this object.
Returns:True if the current object is equal to the other parameter; otherwise, false.
Implements:
Parses the property value as a date or date-time without supplying a time zone for a TZID parameter.
public DateTime ToDateTime()
The parsed date or date-time.
Exceptions: CalendarParseExceptionThe value cannot be parsed or requires a matching time zone.
Parses the property value as a date or date-time, checking any TZID parameter against the supplied time zone.
public DateTime ToDateTime(TimeZoneInfo timeZone)
The time zone that must match the property's TZID parameter, when present.
The parsed date or date-time.
Exceptions: CalendarParseExceptionThe value cannot be parsed or its TZID does not match timeZone.
Parses the property value as an iCalendar duration.
public TimeSpan ToDuration()
The duration represented by the property.
Exceptions: CalendarParseExceptionThe property value is not a valid duration.
Parses the comma-separated date values in the property as recurrence exception dates.
public IList<DateTime> ToExceptionDates()
IList<DateTime>
The parsed exception dates.
Exceptions: CalendarParseExceptionOne or more date values cannot be parsed.
Parses the property value as a recurrence rule.
public RecurrenceRule ToRecurrenceRule()
The parsed recurrence rule.
Exceptions: CalendarParseExceptionThe property value is not a valid recurrence rule.
Decodes the escaped text value of an iCalendar property.
public static string ToText(CalProperty property)
The property whose value will be decoded.
Returns:Parses the signed hour, minute, and optional second value stored in the property.
public TimeSpan ToTimeSpan()
The parsed time span.
Exceptions: CalendarParseExceptionThe property value is not in the expected time-span format.