Class WeeklyRecurrenceRule
Represents a weekly recurrence rule.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class WeeklyRecurrenceRule : RecurrenceRule, INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>
Constructors
WeeklyRecurrenceRule()
Initializes a new instance of the WeeklyRecurrenceRule class.
Declaration
public WeeklyRecurrenceRule()
WeeklyRecurrenceRule(DateTime, DateTime, WeekDays, Int32)
Initializes a new instance of the WeeklyRecurrenceRule class.
Declaration
public WeeklyRecurrenceRule(DateTime start, DateTime end, WeekDays weekdays, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.DateTime
end
The end of the recurrence rule. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
WeeklyRecurrenceRule(DateTime, DateTime, WeekDays, Int32, Int32)
Initializes a new instance of the WeeklyRecurrenceRule class.
Declaration
public WeeklyRecurrenceRule(DateTime start, DateTime end, WeekDays weekdays, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.DateTime
end
The end of the recurrence rule. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
WeeklyRecurrenceRule(DateTime, WeekDays, Int32)
Initializes a new instance of the WeeklyRecurrenceRule class.
Declaration
public WeeklyRecurrenceRule(DateTime start, WeekDays weekdays, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
WeeklyRecurrenceRule(DateTime, WeekDays, Int32, Int32)
Initializes a new instance of the WeeklyRecurrenceRule class.
Declaration
public WeeklyRecurrenceRule(DateTime start, WeekDays weekdays, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
Fields
DefaultOffset
Declaration
public static readonly int DefaultOffset
Field Value
System.Int32
|
MatchOffset
Declaration
protected WeeklyRecurrenceRule.MatchOffsetDelegate MatchOffset
Field Value
WeeklyRecurrenceRule.MatchOffsetDelegate
|
Properties
FirstDayOfWeek
Declaration
public DayOfWeek? FirstDayOfWeek { get; set; }
Property Value
System.Nullable<System.DayOfWeek>
|
Frequency
Gets the type of the recurrence rule.
Declaration
public override RecurrenceType Frequency { get; }
Property Value
RecurrenceType
The type of the recurrence rule. |
Overrides
Offset
Gets or sets the offset.
Declaration
public int Offset { get; set; }
Property Value
System.Int32
The offset. |
WeekDays
Gets or sets the week days.
Declaration
public WeekDays WeekDays { get; set; }
Property Value
WeekDays
The week days. |
Methods
AreWeekDaysIncluded(WeekDays)
Declaration
public bool AreWeekDaysIncluded(WeekDays days)
Parameters
WeekDays
days
|
Returns
System.Boolean
|
CopyProperties(RecurrenceRule)
Declaration
protected override void CopyProperties(RecurrenceRule other)
Parameters
RecurrenceRule
other
|
Overrides
CreateInstance()
Equals(RecurrenceRule)
Declaration
public override bool Equals(RecurrenceRule other)
Parameters
RecurrenceRule
other
|
Returns
System.Boolean
|
Overrides
ExcludeWeekDays(WeekDays)
GetFirstDayOfWeek(DateTimeFormatInfo)
Declaration
protected DayOfWeek GetFirstDayOfWeek(DateTimeFormatInfo dateTimeFormat)
Parameters
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.DayOfWeek
|
GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)
Declaration
protected virtual DateTime GetNegativeOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.DateTime
|
GetOccurrenceStart(Int32, DateTime, DateTimeFormatInfo)
Gets the occurrence start given a occurrence index.
Declaration
public override DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters
System.Int32
index
The index. |
System.DateTime
startDate
The start of the reccuring series. |
System.Globalization.DateTimeFormatInfo
dateTimeFormat
The date time format. |
Returns
System.DateTime
|
Overrides
GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)
Declaration
protected virtual DateTime GetPositiveOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.DateTime
|
IncludeWeekDays(WeekDays)
IntersectsWithException(DateTime, TimeSpan, IEvent)
Declaration
public override bool IntersectsWithException(DateTime eventStart, TimeSpan eventDuration, IEvent exception)
Parameters
System.DateTime
eventStart
|
System.TimeSpan
eventDuration
|
IEvent
exception
|
Returns
System.Boolean
|
Overrides
IsOffsetMatch(DateTime, DateTimeFormatInfo)
Declaration
protected virtual bool IsOffsetMatch(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
MatchAdvancedPattern(DateTime, DateTimeFormatInfo)
Declaration
public override bool MatchAdvancedPattern(DateTime start, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
start
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
Overrides
MatchDayOfWeekMask(DateTime, Calendar)
Declaration
protected bool MatchDayOfWeekMask(DateTime start, Calendar calendar)
Parameters
System.DateTime
start
|
System.Globalization.Calendar
calendar
|
Returns
System.Boolean
|
MatchOffsetNegative(DateTime, DateTimeFormatInfo)
Declaration
protected bool MatchOffsetNegative(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
MatchOffsetPositive(DateTime, DateTimeFormatInfo)
Declaration
protected bool MatchOffsetPositive(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|