Class
YearlyRecurrenceRule

Represents a yearly recurrence rule.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
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

YearlyRecurrenceRule()

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule()

YearlyRecurrenceRule(DateTime, WeekDays, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval)

Parameters

start

DateTime

The start of the recurrence rule.

weekdays

WeekDays

The week days.

offset

int

The offset.

interval

int

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, WeekDays, int, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, WeekDays weekdays, int offset, int interval, int count)

Parameters

start

DateTime

The start of the recurrence rule.

weekdays

WeekDays

The week days.

offset

int

The offset of the recurrence rule.

interval

int

The interval of the recurrence rule.

count

int

The count.

YearlyRecurrenceRule(DateTime, int, WeekDays, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval)

Parameters

start

DateTime

The start of the recurrence rule.

weekNumber

int

The week number.

weekdays

WeekDays

The week days.

interval

int

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, int, WeekDays, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int weekNumber, WeekDays weekdays, int interval, int count)

Parameters

start

DateTime

The start of the recurrence rule.

weekNumber

int

The week number.

weekdays

WeekDays

The week days.

interval

int

The interval of the recurrence rule.

count

int

The count.

YearlyRecurrenceRule(DateTime, int, WeekDays, int, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int monthNumber, WeekDays weekdays, int offset, int interval, int count)

Parameters

start

DateTime

The start of the recurrence rule.

monthNumber

int

The month number.

weekdays

WeekDays

The week days.

offset

int

The offset of the recurrence rule.

interval

int

The interval of the recurrence rule.

count

int

The count.

YearlyRecurrenceRule(DateTime, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int dayNumber, int interval)

Parameters

start

DateTime

The start of the recurrence rule.

dayNumber

int

The day number.

interval

int

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, int, int, WeekDays, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval)

Parameters

start

DateTime

The start of the recurrence rule.

monthNumber

int

The month number.

weekNumber

int

The week number.

weekdays

WeekDays

The week days.

interval

int

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, int, int, WeekDays, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int monthNumber, int weekNumber, WeekDays weekdays, int interval, int count)

Parameters

start

DateTime

The start of the recurrence rule.

monthNumber

int

The month number.

weekNumber

int

The week number.

weekdays

WeekDays

The week days.

interval

int

The interval of the recurrence rule.

count

int

The count.

YearlyRecurrenceRule(DateTime, int, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval)

Parameters

start

DateTime

The start of the recurrence rule.

monthNumber

int

The month number.

dayNumber

int

The day number.

interval

int

The interval of the recurrence rule.

YearlyRecurrenceRule(DateTime, int, int, int, int)

Initializes a new instance of the YearlyRecurrenceRule class.

Declaration

cs-api-definition
public YearlyRecurrenceRule(DateTime start, int monthNumber, int dayNumber, int interval, int count)

Parameters

start

DateTime

The start of the recurrence rule.

monthNumber

int

The month number.

dayNumber

int

The day number.

interval

int

The interval of the recurrence rule.

count

int

The count.

Fields

DefaultMonthNumber

Declaration

cs-api-definition
public static readonly int DefaultMonthNumber

Field Value

int

Properties

Frequency

Gets the type of the recurrence rule.

Declaration

cs-api-definition
public override RecurrenceType Frequency { get; }

Property Value

RecurrenceType

The type of the recurrence rule.

Overrides MonthlyRecurrenceRule.Frequency

MonthNumber

Gets or sets the month number.

Declaration

cs-api-definition
public int MonthNumber { get; set; }

Property Value

int

The month number.

Methods

CopyProperties(RecurrenceRule)

Declaration

cs-api-definition
protected override void CopyProperties(RecurrenceRule other)

Parameters

other

RecurrenceRule

Overrides MonthlyRecurrenceRule.CopyProperties(RecurrenceRule)

CreateInstance()

Declaration

cs-api-definition
protected override RecurrenceRule CreateInstance()

Returns

RecurrenceRule

Overrides MonthlyRecurrenceRule.CreateInstance()

Equals(RecurrenceRule)

Declaration

cs-api-definition
public override bool Equals(RecurrenceRule other)

Parameters

other

RecurrenceRule

Returns

bool

Overrides MonthlyRecurrenceRule.Equals(RecurrenceRule)

GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)

Declaration

cs-api-definition
protected override DateTime GetNegativeOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)

Parameters

date

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

DateTime

Overrides MonthlyRecurrenceRule.GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)

GetOccurrenceStart(int, DateTime, DateTimeFormatInfo)

Gets the occurrence start given a occurrence index.

Declaration

cs-api-definition
public override DateTime GetOccurrenceStart(int index, DateTime startDate, DateTimeFormatInfo dateTimeFormat)

Parameters

index

int

The index.

startDate

DateTime

The start of the recurring series.

dateTimeFormat

DateTimeFormatInfo

The date time format.

Returns

DateTime

Overrides MonthlyRecurrenceRule.GetOccurrenceStart(int, DateTime, DateTimeFormatInfo)

GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)

Declaration

cs-api-definition
protected override DateTime GetPositiveOffsetStart(DateTime date, DateTimeFormatInfo dateTimeFormat)

Parameters

date

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

DateTime

Overrides MonthlyRecurrenceRule.GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)

IsOffsetMatch(DateTime, DateTimeFormatInfo)

Declaration

cs-api-definition
protected override bool IsOffsetMatch(DateTime date, DateTimeFormatInfo dateTimeFormat)

Parameters

date

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

bool

Overrides MonthlyRecurrenceRule.IsOffsetMatch(DateTime, DateTimeFormatInfo)

MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

Declaration

cs-api-definition
public override bool MatchAdvancedPattern(DateTime date, DateTimeFormatInfo dateTimeFormat)

Parameters

date

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

bool

Overrides MonthlyRecurrenceRule.MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

MatchDayNumber(DateTime, DateTimeFormatInfo)

Declaration

cs-api-definition
protected bool MatchDayNumber(DateTime date, DateTimeFormatInfo dateTimeFormat)

Parameters

date

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

bool

MatchWeekNumber(DateTime, DateTimeFormatInfo)

Declaration

cs-api-definition
protected bool MatchWeekNumber(DateTime date, DateTimeFormatInfo dateTimeFormat)

Parameters

date

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

bool

TryGetCloseToNextOccurrenceDate(DateTime, bool, out DateTime)

Declaration

cs-api-definition
public override bool TryGetCloseToNextOccurrenceDate(DateTime currentDate, bool hasOccurrenceOnCurrentDate, out DateTime closeToNextDate)

Parameters

currentDate

DateTime

hasOccurrenceOnCurrentDate

bool

closeToNextDate

DateTime

Returns

bool

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