Back to Devexpress

RecurrenceInfo.End Property

corelibraries-devexpress-dot-xtrascheduler-dot-recurrenceinfo-c30434ba.md

latest6.6 KB
Original Source

RecurrenceInfo.End Property

Gets or sets the recurrence’s end date.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public DateTime End { get; set; }
vb
Public Property [End] As Date

Property Value

TypeDescription
DateTime

A DateTime value that specifies the end date for the recurrence.

|

Remarks

If the RecurrenceInfo.Range property is set to the RecurrenceRange.EndByDate value, the End property can be used together with the RecurrenceInfo.Start property to define the range of recurrence - the period of time in which the appointment reoccurs. The End property specifies when the last occurrence will be repeated.

Note that when defining the range of recurrence via code, the RecurrenceInfo.Duration property can be used instead of the End property. These two properties are interdependent, so changing the value of the End property affects the RecurrenceInfo.Duration property’s value and vice versa.

The value of the End property is ignored if the RecurrenceInfo.Range property is set to either the RecurrenceRange.OccurrenceCount or RecurrenceRange.NoEndDate value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the End property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/CS/DXSchedulerSelection/Model/SportChannels.cs#L105

csharp
recInfo.Start = pattern.StartTime;
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;

wpf-scheduler-add-datenavigator-and-resourcetree-controls/CS/DXSample/Data/Data.cs#L179

csharp
recInfo.Start = pattern.StartTime;
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;

wpf-scheduler-customize-context-menus/CS/DXScheduler_PopUpMenuCustomization/Model/SportChannels.cs#L105

csharp
recInfo.Start = pattern.StartTime;
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;

wpf-scheduler-disable-resource-colorization/CS/DXSample/Data/Data.cs#L179

csharp
recInfo.Start = pattern.StartTime;
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;

wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/VB/DXSchedulerSelection/Model/SportChannels.vb#L139

vb
recInfo.Start = pattern.StartTime
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays

wpf-scheduler-add-datenavigator-and-resourcetree-controls/VB/DXSample/Data/Data.vb#L305

vb
recInfo.Start = pattern.StartTime
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays

wpf-scheduler-customize-context-menus/VB/DXScheduler_PopUpMenuCustomization/Model/SportChannels.vb#L139

vb
recInfo.Start = pattern.StartTime
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays

wpf-scheduler-disable-resource-colorization/VB/DXSample/Data/Data.vb#L305

vb
recInfo.Start = pattern.StartTime
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays

Implements

End

See Also

Range

Start

Duration

RecurrenceInfo Class

RecurrenceInfo Members

DevExpress.XtraScheduler Namespace