New to Telerik UI for WinFormsStart a free 30-day trial

Represents a yearly recurrence rule.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class YearlyRecurrenceRule : MonthlyRecurrenceRule, INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>

Inheritance: objectRecurrenceRuleWeeklyRecurrenceRuleMonthlyRecurrenceRuleYearlyRecurrenceRule

Implements: ICloneableIEquatable<RecurrenceRule>INotifyPropertyChanged

Inherited Members MonthlyRecurrenceRule.DefaultDayNumberMonthlyRecurrenceRule.DefaultWeekNumberMonthlyRecurrenceRule.MatchDayOfMonth(DateTime, DateTimeFormatInfo)MonthlyRecurrenceRule.MatchWeekOfMonth(DateTime, DateTimeFormatInfo)MonthlyRecurrenceRule.MatchWeekOfMonth(DateTime, DateTime, DateTimeFormatInfo)MonthlyRecurrenceRule.DayNumberMonthlyRecurrenceRule.WeekNumberWeeklyRecurrenceRule.DefaultOffsetWeeklyRecurrenceRule.MatchOffsetWeeklyRecurrenceRule.GetFirstDayOfWeek(DateTimeFormatInfo)WeeklyRecurrenceRule.MatchOffsetPositive(DateTime, DateTimeFormatInfo)WeeklyRecurrenceRule.MatchOffsetNegative(DateTime, DateTimeFormatInfo)WeeklyRecurrenceRule.MatchDayOfWeekMask(DateTime, Calendar)WeeklyRecurrenceRule.IncludeWeekDays(WeekDays)WeeklyRecurrenceRule.ExcludeWeekDays(WeekDays)WeeklyRecurrenceRule.AreWeekDaysIncluded(WeekDays)WeeklyRecurrenceRule.IntersectsWithException(DateTime, TimeSpan, IEvent)WeeklyRecurrenceRule.WeekDaysWeeklyRecurrenceRule.OffsetWeeklyRecurrenceRule.FirstDayOfWeekRecurrenceRule.DefaultEndDateRecurrenceRule.DefaultCountRecurrenceRule.CreateRule(RecurrenceType)RecurrenceRule.SuspendNotifications()RecurrenceRule.ResumeNotifications()RecurrenceRule.OnPropertyChanged(string)RecurrenceRule.IsExceptionDate(DateTime)RecurrenceRule.IsValid()RecurrenceRule.Equals(object)RecurrenceRule.GetHashCode()RecurrenceRule.ToString()RecurrenceRule.Clone()RecurrenceRule.ExceptionDatesRecurrenceRule.StartRecurrenceRule.EndRecurrenceRule.EventDurationRecurrenceRule.CountRecurrenceRule.IntervalRecurrenceRule.PropertyChanged...

Constructors

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule()

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

monthNumberint

The month number.

dayNumberint

The day number.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval)
Parameters:startDateTime

The start of the recurrence rule.

monthNumberint

The month number.

dayNumberint

The day number.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

monthNumberint

The month number.

weekNumberint

The week number.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval)
Parameters:startDateTime

The start of the recurrence rule.

monthNumberint

The month number.

weekNumberint

The week number.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int dayNumber, int interval)
Parameters:startDateTime

The start of the recurrence rule.

dayNumberint

The day number.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int monthNumber, WeekDays weekdays, int offset, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

monthNumberint

The month number.

weekdaysWeekDays

The week days.

offsetint

The offset of the recurrence rule.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

weekNumberint

The week number.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval)
Parameters:startDateTime

The start of the recurrence rule.

weekNumberint

The week number.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

weekdaysWeekDays

The week days.

offsetint

The offset of the recurrence rule.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the YearlyRecurrenceRule class.

C#
public YearlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval)
Parameters:startDateTime

The start of the recurrence rule.

weekdaysWeekDays

The week days.

offsetint

The offset.

intervalint

The interval of the recurrence rule.

Fields

C#
public static readonly int DefaultMonthNumber

Properties

Gets the type of the recurrence rule.

C#
public override RecurrenceType Frequency { get; }
Property Value:

The type of the recurrence rule.

Overrides: MonthlyRecurrenceRule.Frequency

Gets or sets the month number.

C#
public int MonthNumber { get; set; }
Property Value:

The month number.

Methods

C#
protected override void CopyProperties(RecurrenceRule other)
Parameters:otherRecurrenceRule

Overrides: MonthlyRecurrenceRule.CopyProperties(RecurrenceRule)

C#
protected override RecurrenceRule CreateInstance()
Returns:

RecurrenceRule

Overrides: MonthlyRecurrenceRule.CreateInstance()

C#
public override bool Equals(RecurrenceRule other)
Parameters:otherRecurrenceRuleReturns:

bool

Overrides: MonthlyRecurrenceRule.Equals(RecurrenceRule)

C#
protected override DateTime GetNegativeOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters:dateDateTimedateTimeFormatDateTimeFormatInfoReturns:

DateTime

Overrides: MonthlyRecurrenceRule.GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)

Gets the occurrence start given a occurrence index.

C#
public override DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters:indexint

The index.

startDateDateTime

The start of the recurring series.

dateTimeFormatDateTimeFormatInfo

The date time format.

Returns:

DateTime

Overrides: MonthlyRecurrenceRule.GetOccurrenceStart(int, DateTime, DateTimeFormatInfo)

C#
protected override DateTime GetPositiveOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters:dateDateTimedateTimeFormatDateTimeFormatInfoReturns:

DateTime

Overrides: MonthlyRecurrenceRule.GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)

C#
protected override bool IsOffsetMatch(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters:dateDateTimedateTimeFormatDateTimeFormatInfoReturns:

bool

Overrides: MonthlyRecurrenceRule.IsOffsetMatch(DateTime, DateTimeFormatInfo)

C#
public override bool MatchAdvancedPattern(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters:dateDateTimedateTimeFormatDateTimeFormatInfoReturns:

bool

Overrides: MonthlyRecurrenceRule.MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

C#
protected bool MatchDayNumber(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters:dateDateTimedateTimeFormatDateTimeFormatInfoReturns:

bool

C#
protected bool MatchWeekNumber(DateTime date, DateTimeFormatInfo dateTimeFormat)
Parameters:dateDateTimedateTimeFormatDateTimeFormatInfoReturns:

bool

C#
public override bool TryGetCloseToNextOccurrenceDate(DateTime currentDate, bool hasOccurrenceOnCurrentDate, out DateTime closeToNextDate)
Parameters:currentDateDateTimehasOccurrenceOnCurrentDateboolcloseToNextDateDateTimeReturns:

bool

Overrides: MonthlyRecurrenceRule.TryGetCloseToNextOccurrenceDate(DateTime, bool, out DateTime)