Class RecurrenceRule
Represents a base class that the actual recurrence rules extend.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public abstract class RecurrenceRule : INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>
Constructors
RecurrenceRule()
RecurrenceRule(DateTime, DateTime, Int32)
Initializes a new instance of the Recurrence
Declaration
public RecurrenceRule(DateTime start, DateTime end, int interval)
Parameters
System. The start of the recurrence rule. |
System. The end of the recurrence rule. |
System. The interval. |
RecurrenceRule(DateTime, DateTime, Int32, Int32)
Initializes a new instance of the Recurrence
Declaration
public RecurrenceRule(DateTime start, DateTime end, int interval, int count)
Parameters
System. The start of the recurrence rule. |
System. The end of the recurrence rule. |
System. The interval of the recurrence rule. |
System. The maximum number of occurrences. |
RecurrenceRule(DateTime, Int32)
Initializes a new instance of the Recurrence
Declaration
public RecurrenceRule(DateTime start, int interval)
Parameters
System. The start of the recurrence rule. |
System. The interval of the recurrence rule. |
RecurrenceRule(DateTime, Int32, Int32)
Initializes a new instance of the Recurrence
Declaration
public RecurrenceRule(DateTime start, int interval, int count)
Parameters
System. The start of the recurrence rule. |
System. The interval of the recurrence rule. |
System. The maximum number of occurrences. |
Fields
DefaultCount
Declaration
public static readonly int DefaultCount
Field Value
System.
|
DefaultEndDate
Declaration
public static readonly DateTime DefaultEndDate
Field Value
System.
|
Properties
Count
Gets or sets the maximum number of occurrences.
Declaration
public int Count { get; set; }
Property Value
System. The count. |
End
Gets or sets the end of the recurrence rule.
Declaration
public DateTime End { get; set; }
Property Value
System. The end. |
EventDuration
Gets the durration of the recurring event.
Declaration
public TimeSpan EventDuration { get; }
Property Value
System.
|
ExceptionDates
Declaration
public IList<DateTime> ExceptionDates { get; }
Property Value
System.
|
Frequency
Gets the type of the recurrence rule.
Declaration
public abstract RecurrenceType Frequency { get; }
Property Value
Recurrence The type of the recurrence rule. |
Interval
Gets or sets the interval of the recurrence rule.
Declaration
public int Interval { get; set; }
Property Value
System. The interval. |
Start
Gets or sets the start of the recurrence rule.
Declaration
public DateTime? Start { get; set; }
Property Value
System. The start. |
Methods
Clone()
CopyProperties(RecurrenceRule)
Declaration
protected virtual void CopyProperties(RecurrenceRule other)
Parameters
Recurrence
|
CreateInstance()
CreateRule(RecurrenceType)
Creates a rule given its type.
Declaration
public static RecurrenceRule CreateRule(RecurrenceType type)
Parameters
Recurrence The type of the recurrence rule. |
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
System.
|
Returns
System.
|
Overrides
Equals(RecurrenceRule)
Declaration
public virtual bool Equals(RecurrenceRule other)
Parameters
Recurrence
|
Returns
System.
|
Implements
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.
|
Overrides
GetOccurrenceStart(Int32, 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 Occurrence
Declaration
public abstract DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters
System. The index after the suggested date. |
System. The suggested start date. |
System. The date time format. |
Returns
System. A potential occurrence start which should be checked if it matches the pattern. |
IntersectsWithException(DateTime, TimeSpan, IEvent)
Declaration
public abstract bool IntersectsWithException(DateTime eventStart, TimeSpan eventDuration, IEvent exception)
Parameters
System.
|
System.
|
IEvent
exception
|
Returns
System.
|
IsExceptionDate(DateTime)
Checks if there is an occurrence exception on the specified date.
Declaration
public virtual bool IsExceptionDate(DateTime date)
Parameters
System. The date to check for exceptions. |
Returns
System. [true] if there is an exception on that date, [false] otherwise |
IsValid()
Declaration
public virtual bool IsValid()
Returns
System.
|
MatchAdvancedPattern(DateTime, DateTimeFormatInfo)
Declaration
public virtual bool MatchAdvancedPattern(DateTime start, DateTimeFormatInfo dateTimeFormat)
Parameters
System.
|
System.
|
Returns
System.
|
OnPropertyChanged(String)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
System.
|
ResumeNotifications()
Declaration
public virtual void ResumeNotifications()
SuspendNotifications()
Declaration
public virtual void SuspendNotifications()
ToString()
Declaration
public override string ToString()
Returns
System.
|
Overrides
TryGetCloseToNextOccurrenceDate(DateTime, Boolean, out DateTime)
Declaration
public virtual bool TryGetCloseToNextOccurrenceDate(DateTime currentDate, bool hasOcurrenceOnCurrentDate, out DateTime closeToNextDate)
Parameters
System.
|
System.
|
System.
|
Returns
System.
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|
Explicit Interface Implementations
ICloneable.Clone()
Declaration
object ICloneable.Clone()
Returns
System.
|