Back to Devexpress

RecurrenceInfo.Type Property

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

latest8.4 KB
Original Source

RecurrenceInfo.Type Property

Gets or sets the time base for the frequency of the corresponding appointment’s reoccurrences.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public RecurrenceType Type { get; set; }
vb
Public Property Type As RecurrenceType

Property Value

TypeDescription
RecurrenceType

A RecurrenceType enumeration value that specifies the recurrence’s frequency type.

|

Available values:

NameDescription
Daily

The recurring appointment reoccurs on a daily base.

| | Weekly |

The recurring appointment reoccurs on a weekly base.

| | Monthly |

The recurring appointment reoccurs on a monthly base.

| | Yearly |

The recurring appointment reoccurs on an yearly base.

| | Minutely |

The recurring appointment reoccurs on a minute base.

| | Hourly |

The recurring appointment reoccurs on an hourly base.

|

Remarks

The Type property specifies the basis for the corresponding appointment’s recurrence pattern used to calculate the appointment’s reoccurrence. There are six types of recurrence available: minutely, hourly, daily, weekly, monthly, yearly. The RecurrenceType enumeration lists all of them. The frequency applied to the time base specified by the Type property can be set via the RecurrenceInfo.Periodicity property.

The images in the following table demonstrate the ways in which the Type property can be assigned to the recurrence pattern in the Appointment Recurrence dialog.

|

Type = RecurrenceType.Daily

|

| |

Type = RecurrenceType.Weekly

|

| |

Type = RecurrenceType.Monthly

|

| |

Type = RecurrenceType.Yearly

|

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Type 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#L108

csharp
recInfo.Range = RecurrenceRange.EndByDate;
recInfo.Type = RecurrenceType.Daily;
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,

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

csharp
recInfo.Range = RecurrenceRange.EndByDate;
recInfo.Type = RecurrenceType.Daily;
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,

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

csharp
recInfo.Range = RecurrenceRange.EndByDate;
recInfo.Type = RecurrenceType.Daily;
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,

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

csharp
recInfo.Range = RecurrenceRange.EndByDate;
recInfo.Type = RecurrenceType.Daily;
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,

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

vb
recInfo.Range = RecurrenceRange.EndByDate
recInfo.Type = RecurrenceType.Daily
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat, recInfo.Start, recInfo.End, CInt(recInfo.WeekDays), recInfo.OccurrenceCount, CInt(recInfo.Range), CInt(recInfo.Type), recInfo.Id.ToString())

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

vb
recInfo.Range = RecurrenceRange.EndByDate
recInfo.Type = RecurrenceType.Daily
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat, recInfo.Start, recInfo.End, CInt(recInfo.WeekDays), recInfo.OccurrenceCount, CInt(recInfo.Range), CInt(recInfo.Type), recInfo.Id.ToString())

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

vb
recInfo.Range = RecurrenceRange.EndByDate
recInfo.Type = RecurrenceType.Daily
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat, recInfo.Start, recInfo.End, CInt(recInfo.WeekDays), recInfo.OccurrenceCount, CInt(recInfo.Range), CInt(recInfo.Type), recInfo.Id.ToString())

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

vb
recInfo.Range = RecurrenceRange.EndByDate
recInfo.Type = RecurrenceType.Daily
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat, recInfo.Start, recInfo.End, CInt(recInfo.WeekDays), recInfo.OccurrenceCount, CInt(recInfo.Range), CInt(recInfo.Type), recInfo.Id.ToString())

Implements

Type

See Also

Periodicity

How to: Create Appointments with Various Recurrence Types Programmatically

How to: Customize an Appointment Recurrence Form

RecurrenceInfo Class

RecurrenceInfo Members

DevExpress.XtraScheduler Namespace