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

Represents a weekly recurrence rule.

Definition

Constructors

Initializes a new instance of the WeeklyRecurrenceRule class.

C#
public WeeklyRecurrenceRule()

Initializes a new instance of the WeeklyRecurrenceRule class.

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

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the WeeklyRecurrenceRule class.

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

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the WeeklyRecurrenceRule class.

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

The start of the recurrence rule.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

countint

The count.

Initializes a new instance of the WeeklyRecurrenceRule class.

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

The start of the recurrence rule.

weekdaysWeekDays

The week days.

intervalint

The interval of the recurrence rule.

Fields

C#
public static readonly int DefaultOffset
C#
protected WeeklyRecurrenceRule.MatchOffsetDelegate MatchOffset

Properties

C#
public DayOfWeek? FirstDayOfWeek { get; set; }

Gets the type of the recurrence rule.

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

The type of the recurrence rule.

Overrides: RecurrenceRule.Frequency

Gets or sets the offset.

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

The offset.

Gets or sets the week days.

C#
public WeekDays WeekDays { get; set; }
Property Value:

The week days.

Methods

C#
public bool AreWeekDaysIncluded(WeekDays days)
Parameters:daysWeekDaysReturns:

bool

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

Overrides: RecurrenceRule.CopyProperties(RecurrenceRule)

C#
protected override RecurrenceRule CreateInstance()
Returns:

RecurrenceRule

Overrides: RecurrenceRule.CreateInstance()

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

bool

Overrides: RecurrenceRule.Equals(RecurrenceRule)

C#
public void ExcludeWeekDays(WeekDays days)
Parameters:daysWeekDays
C#
protected DayOfWeek GetFirstDayOfWeek(DateTimeFormatInfo dateTimeFormat)
Parameters:dateTimeFormatDateTimeFormatInfoReturns:

DayOfWeek

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

DateTime

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 reccuring series.

dateTimeFormatDateTimeFormatInfo

The date time format.

Returns:

DateTime

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

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

DateTime

C#
public void IncludeWeekDays(WeekDays days)
Parameters:daysWeekDays
C#
public override bool IntersectsWithException(DateTime eventStart, TimeSpan eventDuration, IEvent exception)
Parameters:eventStartDateTimeeventDurationTimeSpanexceptionIEventReturns:

bool

Overrides: RecurrenceRule.IntersectsWithException(DateTime, TimeSpan, IEvent)

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

bool

C#
public override bool MatchAdvancedPattern(DateTime start, DateTimeFormatInfo dateTimeFormat)
Parameters:startDateTimedateTimeFormatDateTimeFormatInfoReturns:

bool

Overrides: RecurrenceRule.MatchAdvancedPattern(DateTime, DateTimeFormatInfo)

C#
protected bool MatchDayOfWeekMask(DateTime start, Calendar calendar)
Parameters:startDateTimecalendarCalendarReturns:

bool

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

bool

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

bool