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

Represents a monthly recurrence rule.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
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

Initializes a new instance of the MonthlyRecurrenceRule class.

C#
public MonthlyRecurrenceRule()

Initializes a new instance of the MonthlyRecurrenceRule class.

C#
public MonthlyRecurrenceRule(DateTime start, DateTime end, int dayNumber, int interval, int count)
Parameters:startDateTime

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

dayNumberint

The day number.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the MonthlyRecurrenceRule class.

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

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

dayNumberint

The day number.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the MonthlyRecurrenceRule class.

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

The start of the recurrence rule.

endDateTime

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

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

The start of the recurrence rule.

endDateTime

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

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

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

weekdaysWeekDays

The week days.

offsetint

The offset.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the MonthlyRecurrenceRule class.

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

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

weekdaysWeekDays

The week days.

offsetint

The offset.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the MonthlyRecurrenceRule class.

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

The start of the recurrence rule.

dayNumberint

The day number.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the MonthlyRecurrenceRule class.

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

The start of the recurrence rule.

dayNumberint

The day number of the recurrence rule.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the MonthlyRecurrenceRule class.

C#
public MonthlyRecurrenceRule(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 MonthlyRecurrenceRule class.

C#
public MonthlyRecurrenceRule(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 MonthlyRecurrenceRule class.

C#
public MonthlyRecurrenceRule(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.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the MonthlyRecurrenceRule class.

C#
public MonthlyRecurrenceRule(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 DefaultDayNumber
C#
public static readonly int DefaultWeekNumber

Properties

Gets or sets the day number.

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

The day number.

Gets the type of the recurrence rule.

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

The type of the recurrence rule.

Overrides: WeeklyRecurrenceRule.Frequency

Gets or sets the week number.

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

The week number.

Methods

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

Overrides: WeeklyRecurrenceRule.CopyProperties(RecurrenceRule)

C#
protected override RecurrenceRule CreateInstance()
Returns:

RecurrenceRule

Overrides: WeeklyRecurrenceRule.CreateInstance()

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

bool

Overrides: WeeklyRecurrenceRule.Equals(RecurrenceRule)

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

DateTime

Overrides: WeeklyRecurrenceRule.GetNegativeOffsetStart(DateTime, DateTimeFormatInfo)

Gets the occurrence start given an occurrence index.

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

The index.

startDateDateTime

The start date of the series.

dateTimeFormatDateTimeFormatInfo

The date time format.

Returns:

DateTime

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

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

DateTime

Overrides: WeeklyRecurrenceRule.GetPositiveOffsetStart(DateTime, DateTimeFormatInfo)

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

bool

Overrides: WeeklyRecurrenceRule.IsOffsetMatch(DateTime, DateTimeFormatInfo)

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

bool

Overrides: WeeklyRecurrenceRule.MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

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

bool

C#
protected bool MatchWeekOfMonth(DateTime date, DateTime startDate, DateTimeFormatInfo dateTimeFormat)
Parameters:dateDateTimestartDateDateTimedateTimeFormatDateTimeFormatInfoReturns:

bool

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

bool

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

bool

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