Class MonthlyRecurrenceRule
Represents a monthly recurrence rule.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class MonthlyRecurrenceRule : WeeklyRecurrenceRule, INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>
Constructors
MonthlyRecurrenceRule()
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule()
MonthlyRecurrenceRule(DateTime, DateTime, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, DateTime end, int dayNumber, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.DateTime
end
The end of the recurrence rule. |
System.Int32
dayNumber
The day number. |
System.Int32
interval
The interval of the recurrence rule. |
MonthlyRecurrenceRule(DateTime, DateTime, Int32, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, DateTime end, int dayNumber, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.DateTime
end
The end of the recurrence rule. |
System.Int32
dayNumber
The day number. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
MonthlyRecurrenceRule(DateTime, DateTime, Int32, WeekDays, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, DateTime end, int weekNumber, WeekDays weekdays, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.DateTime
end
The end of the recurrence rule. |
System.Int32
weekNumber
The week number. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
MonthlyRecurrenceRule(DateTime, DateTime, Int32, WeekDays, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, DateTime end, int weekNumber, 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. |
System.Int32
weekNumber
The week number. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
MonthlyRecurrenceRule(DateTime, DateTime, WeekDays, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, DateTime end, WeekDays weekdays, int offset, 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
offset
The offset. |
System.Int32
interval
The interval of the recurrence rule. |
MonthlyRecurrenceRule(DateTime, DateTime, WeekDays, Int32, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, DateTime end, WeekDays weekdays, int offset, 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
offset
The offset. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
MonthlyRecurrenceRule(DateTime, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, int dayNumber, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
dayNumber
The day number of the recurrence rule. |
System.Int32
interval
The interval of the recurrence rule. |
MonthlyRecurrenceRule(DateTime, Int32, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, int dayNumber, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
dayNumber
The day number. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
MonthlyRecurrenceRule(DateTime, Int32, WeekDays, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
weekNumber
The week number. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
MonthlyRecurrenceRule(DateTime, Int32, WeekDays, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
weekNumber
The week number. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
MonthlyRecurrenceRule(DateTime, WeekDays, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
WeekDays
weekdays
The week days. |
System.Int32
offset
The offset. |
System.Int32
interval
The interval of the recurrence rule. |
MonthlyRecurrenceRule(DateTime, WeekDays, Int32, Int32, Int32)
Initializes a new instance of the MonthlyRecurrenceRule class.
Declaration
public MonthlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
WeekDays
weekdays
The week days. |
System.Int32
offset
The offset. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
Fields
DefaultDayNumber
Declaration
public static readonly int DefaultDayNumber
Field Value
System.Int32
|
DefaultWeekNumber
Declaration
public static readonly int DefaultWeekNumber
Field Value
System.Int32
|
Properties
DayNumber
Gets or sets the day number.
Declaration
public int DayNumber { get; set; }
Property Value
System.Int32
The day number. |
Frequency
Gets the type of the recurrence rule.
Declaration
public override RecurrenceType Frequency { get; }
Property Value
RecurrenceType
The type of the recurrence rule. |
Overrides
WeekNumber
Gets or sets the week number.
Declaration
public int WeekNumber { get; set; }
Property Value
System.Int32
The week number. |
Methods
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
GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)
Declaration
protected override DateTime GetNegativeOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.DateTime
|
Overrides
GetOccurrenceStart(Int32, DateTime, DateTimeFormatInfo)
Gets the occurrence start given an occurrence index.
Declaration
public override DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters
System.Int32
index
The index. |
System.DateTime
startDate
The start date of the series. |
System.Globalization.DateTimeFormatInfo
dateTimeFormat
The date time format. |
Returns
System.DateTime
|
Overrides
GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)
Declaration
protected override DateTime GetPositiveOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.DateTime
|
Overrides
IsOffsetMatch(DateTime, DateTimeFormatInfo)
Declaration
protected override bool IsOffsetMatch(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
Overrides
MatchAdvancedPattern(DateTime, DateTimeFormatInfo)
Declaration
public override bool MatchAdvancedPattern(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
Overrides
MatchDayOfMonth(DateTime, DateTimeFormatInfo)
Declaration
protected bool MatchDayOfMonth(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
MatchWeekOfMonth(DateTime, DateTime, DateTimeFormatInfo)
Declaration
protected bool MatchWeekOfMonth(DateTime date, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.DateTime
startDate
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
MatchWeekOfMonth(DateTime, DateTimeFormatInfo)
Declaration
protected bool MatchWeekOfMonth(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
TryGetCloseToNextOccurrenceDate(DateTime, Boolean, out DateTime)
Declaration
public override bool TryGetCloseToNextOccurrenceDate(DateTime currentDate, bool hasOccurrenceOnCurrentDate, out DateTime closeToNextDate)
Parameters
System.DateTime
currentDate
|
System.Boolean
hasOccurrenceOnCurrentDate
|
System.DateTime
closeToNextDate
|
Returns
System.Boolean
|