New to Telerik UI for WinForms? Start a free 30-day trial

Represents a daily recurrence rule.

Definition

Constructors

Initializes a new instance of the DailyRecurrenceRule class.

C#
public DailyRecurrenceRule()

Initializes a new instance of the DailyRecurrenceRule class.

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

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

intervalint

The interval of the recurrence rule.

countint

The maximum number of occurrences.

Initializes a new instance of the DailyRecurrenceRule class.

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

The start of the recurrence rule.

endDateTime

The end of the recurrence rule.

intervalint

The interval of the recurrence rule.

Initializes a new instance of the DailyRecurrenceRule class.

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

The start of the recurrence rule.

intervalint

The interval of the recurrence rule.

countint

The maximum number of occurrences.

Initializes a new instance of the DailyRecurrenceRule class.

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

The start of the recurrence rule.

intervalint

The interval of the recurrence rule.

Properties

Gets the type of the recurrence rule.

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

The type of the recurrence rule.

Overrides: RecurrenceRule.Frequency

Methods

Creates a new instance of the concrete rule type for use by Clone().

C#
protected override RecurrenceRule CreateInstance()
Returns:

RecurrenceRule

A new instance of the concrete recurrence-rule type.

Overrides: RecurrenceRule.CreateInstance()

Returns false for a rule of another type; otherwise compares the shared recurrence settings.

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

The rule to compare with this daily rule.

Returns:

bool

true when other is an equal daily rule; otherwise, false.

Overrides: RecurrenceRule.Equals(RecurrenceRule)

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: RecurrenceRule.GetOccurrenceStart(int, DateTime, DateTimeFormatInfo)

Matches an exception by calendar date, regardless of the events' times or durations.

C#
public override bool IntersectsWithException(DateTime eventStart, TimeSpan eventDuration, IEvent exception)
Parameters:eventStartDateTime

The start of the candidate occurrence.

eventDurationTimeSpan

The candidate occurrence duration; it does not affect date matching.

exceptionIEvent

The exception event to compare with the candidate occurrence.

Returns:

bool

true when both starts fall on the same year and day of year; otherwise, false.

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