Back to Devexpress

IRecurrenceInfo.Range Property

corelibraries-devexpress-dot-xtrascheduler-dot-irecurrenceinfo-0dc9abc4.md

latest5.8 KB
Original Source

IRecurrenceInfo.Range Property

Gets or sets the type of the recurrence range.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
RecurrenceRange Range { get; set; }
vb
Property Range As RecurrenceRange

Property Value

TypeDescription
RecurrenceRange

A RecurrenceRange enumeration value that specifies the recurrence’s range type.

|

Available values:

NameDescription
NoEndDate

A recurring appointment will not have an end date.

| | OccurrenceCount |

A recurring appointment will end after its recurrence count exceeds the value specified by the RecurrenceInfo.OccurrenceCount property.

| | EndByDate |

A recurring appointment will end after the date specified by the RecurrenceInfo.End property.

|

Remarks

The Range property specifies the manner in which the range of recurrence is defined - it sets the time boundaries/limits of the recurrence.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Range 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-create-recurrent-appointments-in-code/CS/RecurrenceExamples/MainWindow.xaml.cs#L41

csharp
apt1.RecurrenceInfo.Periodicity = 10;
apt1.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount;
apt1.RecurrenceInfo.OccurrenceCount = 5;

winforms-scheduler-recurrence-series-occurrencecalculator/CS/OccurrenceCalculatorSample/Form1.cs#L33

csharp
apt.RecurrenceInfo.Periodicity = 2;
apt.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount;
apt.RecurrenceInfo.OccurrenceCount = 5;

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L99

csharp
aptPattern.RecurrenceInfo.Periodicity = 2;
aptPattern.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount;
aptPattern.RecurrenceInfo.OccurrenceCount = 10;

winforms-scheduler-sync-with-ews/CS/EWSSyncExample/ExchangeExampleForm.cs#L23

csharp
apt.RecurrenceInfo.End = now.AddDays(6);
apt.RecurrenceInfo.Range = DevExpress.XtraScheduler.RecurrenceRange.EndByDate;
apt.RecurrenceInfo.Type = DevExpress.XtraScheduler.RecurrenceType.Daily;

wpf-scheduler-create-recurrent-appointments-in-code/VB/RecurrenceExamples/MainWindow.xaml.vb#L41

vb
apt1.RecurrenceInfo.Periodicity = 10
apt1.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount
apt1.RecurrenceInfo.OccurrenceCount = 5

winforms-scheduler-recurrence-series-occurrencecalculator/VB/OccurrenceCalculatorSample/Form1.vb#L31

vb
apt.RecurrenceInfo.Periodicity = 2
apt.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount
apt.RecurrenceInfo.OccurrenceCount = 5

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L101

vb
aptPattern.RecurrenceInfo.Periodicity = 2
aptPattern.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount
aptPattern.RecurrenceInfo.OccurrenceCount = 10

winforms-scheduler-sync-with-ews/VB/EWSSyncExample/ExchangeExampleForm.vb#L25

vb
apt.RecurrenceInfo.End = now.AddDays(6)
apt.RecurrenceInfo.Range = DevExpress.XtraScheduler.RecurrenceRange.EndByDate
apt.RecurrenceInfo.Type = DevExpress.XtraScheduler.RecurrenceType.Daily

See Also

IRecurrenceInfo Interface

IRecurrenceInfo Members

DevExpress.XtraScheduler Namespace