ClassRecurrenceRule
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
RecurrenceRule()
Initializes a new instance of the RecurrenceRule class.
Declaration
public RecurrenceRule()
RecurrenceRule(DateTime, DateTime, int)
Initializes a new instance of the RecurrenceRule class.
RecurrenceRule(DateTime, DateTime, int, int)
Initializes a new instance of the RecurrenceRule class.
Declaration
public RecurrenceRule(DateTime start, DateTime end, int interval, int count)
Parameters
start
The start of the recurrence rule.
end
The end of the recurrence rule.
interval
The interval of the recurrence rule.
count
The maximum number of occurrences.
RecurrenceRule(DateTime, int)
Initializes a new instance of the RecurrenceRule class.
RecurrenceRule(DateTime, int, int)
Initializes a new instance of the RecurrenceRule class.
Fields
Properties
Count
Gets or sets the maximum number of occurrences.
End
Gets or sets the end of the recurrence rule.
EventDuration
Gets the durration of the recurring event.
ExceptionDates
Declaration
public IList<DateTime> ExceptionDates { get; }
Property Value
IList<DateTime>
Frequency
Gets the type of the recurrence rule.
Declaration
public abstract RecurrenceType Frequency { get; }
Property Value
The type of the recurrence rule.
Interval
Gets or sets the interval of the recurrence rule.
Methods
CopyProperties(RecurrenceRule)
Declaration
protected virtual void CopyProperties(RecurrenceRule other)
Parameters
other
CreateInstance()
Declaration
protected abstract RecurrenceRule CreateInstance()
Returns
CreateRule(RecurrenceType)
Creates a rule given its type.
Declaration
public static RecurrenceRule CreateRule(RecurrenceType type)
Parameters
type
The type of the recurrence rule.
Returns
Equals(RecurrenceRule)
Declaration
public virtual bool Equals(RecurrenceRule other)
Parameters
other
Returns
Implements
GetOccurrenceStart(int, DateTime, DateTimeFormatInfo)
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.
Declaration
public abstract DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters
index
The index after the suggested date.
startDate
The suggested start date.
dateTimeFormat
The date time format.
Returns
A potential occurrence start which should be checked if it matches the pattern.
IsExceptionDate(DateTime)
Checks if there is an occurrence exception on the specified date.
MatchAdvancedPattern(DateTime, DateTimeFormatInfo)
Declaration
public virtual bool MatchAdvancedPattern(DateTime start, DateTimeFormatInfo dateTimeFormat)
Parameters
start
dateTimeFormat
Returns
OnPropertyChanged(string)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
propertyName
ResumeNotifications()
Declaration
public virtual void ResumeNotifications()
SuspendNotifications()
Declaration
public virtual void SuspendNotifications()
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements