Class YearlyRecurrenceRule
Represents a yearly recurrence rule.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class YearlyRecurrenceRule : MonthlyRecurrenceRule, INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>
Constructors
YearlyRecurrenceRule()
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule()
YearlyRecurrenceRule(DateTime, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(DateTime start, int dayNumber, int interval)
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. |
YearlyRecurrenceRule(DateTime, Int32, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
monthNumber
The month number. |
System.Int32
dayNumber
The day number. |
System.Int32
interval
The interval of the recurrence rule. |
YearlyRecurrenceRule(DateTime, Int32, Int32, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
monthNumber
The month number. |
System.Int32
dayNumber
The day number. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
YearlyRecurrenceRule(DateTime, Int32, Int32, WeekDays, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
monthNumber
The month number. |
System.Int32
weekNumber
The week number. |
WeekDays
weekdays
The week days. |
System.Int32
interval
The interval of the recurrence rule. |
YearlyRecurrenceRule(DateTime, Int32, Int32, WeekDays, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
monthNumber
The month number. |
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. |
YearlyRecurrenceRule(DateTime, Int32, WeekDays, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(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. |
YearlyRecurrenceRule(DateTime, Int32, WeekDays, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(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. |
YearlyRecurrenceRule(DateTime, Int32, WeekDays, Int32, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(DateTime start, int monthNumber, WeekDays weekdays, int offset, int interval, int count)
Parameters
System.DateTime
start
The start of the recurrence rule. |
System.Int32
monthNumber
The month number. |
WeekDays
weekdays
The week days. |
System.Int32
offset
The offset of the recurrence rule. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
YearlyRecurrenceRule(DateTime, WeekDays, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(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. |
YearlyRecurrenceRule(DateTime, WeekDays, Int32, Int32, Int32)
Initializes a new instance of the YearlyRecurrenceRule class.
Declaration
public YearlyRecurrenceRule(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 of the recurrence rule. |
System.Int32
interval
The interval of the recurrence rule. |
System.Int32
count
The count. |
Fields
DefaultMonthNumber
Declaration
public static readonly int DefaultMonthNumber
Field Value
System.Int32
|
Properties
Frequency
Gets the type of the recurrence rule.
Declaration
public override RecurrenceType Frequency { get; }
Property Value
RecurrenceType
The type of the recurrence rule. |
Overrides
MonthNumber
Gets or sets the month number.
Declaration
public int MonthNumber { get; set; }
Property Value
System.Int32
The month 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 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 recurring 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
MatchDayNumber(DateTime, DateTimeFormatInfo)
Declaration
protected bool MatchDayNumber(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters
System.DateTime
date
|
System.Globalization.DateTimeFormatInfo
dateTimeFormat
|
Returns
System.Boolean
|
MatchWeekNumber(DateTime, DateTimeFormatInfo)
Declaration
protected bool MatchWeekNumber(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
|