RecurrenceRule
Represents a base class that the actual recurrence rules extend.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public abstract class RecurrenceRule : INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>
Inheritance: objectRecurrenceRule
Derived Classes:
Implements:
Constructors
Initializes a new instance of the RecurrenceRule class.
public RecurrenceRule()
Initializes a new instance of the RecurrenceRule class.
Initializes a new instance of the RecurrenceRule class.
Initializes a new instance of the RecurrenceRule class.
Initializes a new instance of the RecurrenceRule class.
Fields
public static readonly int DefaultCount
public static readonly DateTime DefaultEndDate
Properties
Gets or sets the maximum number of occurrences.
public int Count { get; set; }
The count.
Gets or sets the end of the recurrence rule.
public DateTime End { get; set; }
The end.
Gets the durration of the recurring event.
public TimeSpan EventDuration { get; }
ExceptionDates
IList<DateTime>
public IList<DateTime> ExceptionDates { get; }
Gets the type of the recurrence rule.
public abstract RecurrenceType Frequency { get; }
The type of the recurrence rule.
Gets or sets the interval of the recurrence rule.
public int Interval { get; set; }
The interval.
Methods
Creates a rule given its type.
public static RecurrenceRule CreateRule(RecurrenceType type)
The type of the recurrence rule.
Returns:public virtual bool Equals(RecurrenceRule other)
Implements:
Gets a date at a given index after the specified startDate. The returned date will be checked with MatchAdvancedPattern to see if it matches the recurrence rule. NOTE: The returned date is not an actual occurence start. To get the start date of a real occurrence use OccurrenceEnumerator.
public abstract DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
The index after the suggested date.
startDateDateTimeThe suggested start date.
dateTimeFormatDateTimeFormatInfoThe date time format.
Returns:A potential occurrence start which should be checked if it matches the pattern.
public virtual bool MatchAdvancedPattern(DateTime start, DateTimeFormatInfo dateTimeFormat)
public virtual void ResumeNotifications()
public virtual void SuspendNotifications()
Events
public event PropertyChangedEventHandler PropertyChanged
Implements: