Class
MonthlyRecurrenceRule

Represents a monthly recurrence rule.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public class MonthlyRecurrenceRule : WeeklyRecurrenceRule, INotifyPropertyChanged, ICloneable, IEquatable<RecurrenceRule>

Inheritance: objectRecurrenceRuleWeeklyRecurrenceRuleMonthlyRecurrenceRule

Derived Classes: YearlyRecurrenceRule

Implements: ICloneableIEquatable<RecurrenceRule>INotifyPropertyChanged

Inherited Members WeeklyRecurrenceRule.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

MonthlyRecurrenceRule()

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

cs-api-definition
public MonthlyRecurrenceRule()

MonthlyRecurrenceRule(DateTime, DateTime, WeekDays, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

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

Parameters

start

DateTime

The start of the recurrence rule.

end

DateTime

The end of the recurrence rule.

weekdays

WeekDays

The week days.

offset

int

The offset.

interval

int

The interval of the recurrence rule.

MonthlyRecurrenceRule(DateTime, DateTime, WeekDays, int, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

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

Parameters

start

DateTime

The start of the recurrence rule.

end

DateTime

The end of the recurrence rule.

weekdays

WeekDays

The week days.

offset

int

The offset.

interval

int

The interval of the recurrence rule.

count

int

The count.

MonthlyRecurrenceRule(DateTime, DateTime, int, WeekDays, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

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

Parameters

start

DateTime

The start of the recurrence rule.

end

DateTime

The end of the recurrence rule.

weekNumber

int

The week number.

weekdays

WeekDays

The week days.

interval

int

The interval of the recurrence rule.

MonthlyRecurrenceRule(DateTime, DateTime, int, WeekDays, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

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

Parameters

start

DateTime

The start of the recurrence rule.

end

DateTime

The end 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.

MonthlyRecurrenceRule(DateTime, DateTime, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

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

Parameters

start

DateTime

The start of the recurrence rule.

end

DateTime

The end of the recurrence rule.

dayNumber

int

The day number.

interval

int

The interval of the recurrence rule.

MonthlyRecurrenceRule(DateTime, DateTime, int, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

cs-api-definition
public MonthlyRecurrenceRule(DateTime start, DateTime end, int dayNumber, int interval, int count)

Parameters

start

DateTime

The start of the recurrence rule.

end

DateTime

The end of the recurrence rule.

dayNumber

int

The day number.

interval

int

The interval of the recurrence rule.

count

int

The count.

MonthlyRecurrenceRule(DateTime, WeekDays, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

cs-api-definition
public MonthlyRecurrenceRule(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.

MonthlyRecurrenceRule(DateTime, WeekDays, int, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

cs-api-definition
public MonthlyRecurrenceRule(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.

interval

int

The interval of the recurrence rule.

count

int

The count.

MonthlyRecurrenceRule(DateTime, int, WeekDays, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

cs-api-definition
public MonthlyRecurrenceRule(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.

MonthlyRecurrenceRule(DateTime, int, WeekDays, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

cs-api-definition
public MonthlyRecurrenceRule(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.

MonthlyRecurrenceRule(DateTime, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

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

Parameters

start

DateTime

The start of the recurrence rule.

dayNumber

int

The day number of the recurrence rule.

interval

int

The interval of the recurrence rule.

MonthlyRecurrenceRule(DateTime, int, int, int)

Initializes a new instance of the MonthlyRecurrenceRule class.

Declaration

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

Parameters

start

DateTime

The start of the recurrence rule.

dayNumber

int

The day number.

interval

int

The interval of the recurrence rule.

count

int

The count.

Fields

DefaultDayNumber

Declaration

cs-api-definition
public static readonly int DefaultDayNumber

Field Value

int

DefaultWeekNumber

Declaration

cs-api-definition
public static readonly int DefaultWeekNumber

Field Value

int

Properties

DayNumber

Gets or sets the day number.

Declaration

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

Property Value

int

The day number.

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 WeeklyRecurrenceRule.Frequency

WeekNumber

Gets or sets the week number.

Declaration

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

Property Value

int

The week number.

Methods

CopyProperties(RecurrenceRule)

Declaration

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

Parameters

other

RecurrenceRule

Overrides WeeklyRecurrenceRule.CopyProperties(RecurrenceRule)

CreateInstance()

Declaration

cs-api-definition
protected override RecurrenceRule CreateInstance()

Returns

RecurrenceRule

Overrides WeeklyRecurrenceRule.CreateInstance()

Equals(RecurrenceRule)

Declaration

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

Parameters

other

RecurrenceRule

Returns

bool

Overrides WeeklyRecurrenceRule.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 WeeklyRecurrenceRule.GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)

GetOccurrenceStart(int, DateTime, DateTimeFormatInfo)

Gets the occurrence start given an 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 date of the series.

dateTimeFormat

DateTimeFormatInfo

The date time format.

Returns

DateTime

Overrides WeeklyRecurrenceRule.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 WeeklyRecurrenceRule.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 WeeklyRecurrenceRule.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 WeeklyRecurrenceRule.MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

MatchDayOfMonth(DateTime, DateTimeFormatInfo)

Declaration

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

Parameters

date

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

bool

MatchWeekOfMonth(DateTime, DateTime, DateTimeFormatInfo)

Declaration

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

Parameters

date

DateTime

startDate

DateTime

dateTimeFormat

DateTimeFormatInfo

Returns

bool

MatchWeekOfMonth(DateTime, DateTimeFormatInfo)

Declaration

cs-api-definition
protected bool MatchWeekOfMonth(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 RecurrenceRule.TryGetCloseToNextOccurrenceDate(DateTime, bool, out DateTime)