RecurrenceInfo.OccurrenceCount Property
Gets or sets how many times the appointment occurs.
Namespace: DevExpress.XtraScheduler
Assembly:
DevExpress.XtraScheduler.v24.2.Core.dll
Declaration
public int OccurrenceCount { get; set; }
Public Property OccurrenceCount As Integer
Property Value
Type |
Description |
Int32 |
An integer value that specifies how many times the appointment occurs.
|
If the RecurrenceInfo.Range property is set to the RecurrenceRange.OccurrenceCount value, the OccurrenceCount 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. In this case, the range of recurrence can be represented by the number of occurrences that should elapse until the recurrence is no longer in effect. The OccurrenceCount property specifies the number of occurrences.
The value of the OccurrenceCount property is ignored if the RecurrenceInfo.Range property is set to either the RecurrenceRange.EndByDate or RecurrenceRange.NoEndDate value.
The following code snippets (auto-collected from DevExpress Examples) contain references to the OccurrenceCount 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-customize-context-menus/CS/DXScheduler_PopUpMenuCustomization/Model/SportChannels.cs#L110
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,
recInfo.Start, recInfo.End, (int)recInfo.WeekDays, recInfo.OccurrenceCount, (int)recInfo.Range, (int)recInfo.Type, recInfo.Id.ToString());
return pattern;
wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/CS/DXSchedulerSelection/Model/SportChannels.cs#L110
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,
recInfo.Start, recInfo.End, (int)recInfo.WeekDays, recInfo.OccurrenceCount, (int)recInfo.Range, (int)recInfo.Type, recInfo.Id.ToString());
return pattern;
wpf-scheduler-add-datenavigator-and-resourcetree-controls/CS/DXSample/Data/Data.cs#L184
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,
recInfo.Start, recInfo.End, (int)recInfo.WeekDays, recInfo.OccurrenceCount, (int)recInfo.Range, (int)recInfo.Type, recInfo.Id.ToString());
return pattern;
wpf-scheduler-disable-resource-colorization/CS/DXSample/Data/Data.cs#L184
pattern.RecurrenceInfo = String.Format(CultureInfo.InvariantCulture, recurrenceInfoFormat,
recInfo.Start, recInfo.End, (int)recInfo.WeekDays, recInfo.OccurrenceCount, (int)recInfo.Range, (int)recInfo.Type, recInfo.Id.ToString());
return pattern;
wpf-scheduler-customize-context-menus/VB/DXScheduler_PopUpMenuCustomization/Model/SportChannels.vb#L143
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())
Return pattern
wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/VB/DXSchedulerSelection/Model/SportChannels.vb#L143
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())
Return pattern
wpf-scheduler-add-datenavigator-and-resourcetree-controls/VB/DXSample/Data/Data.vb#L309
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())
Return pattern
wpf-scheduler-disable-resource-colorization/VB/DXSample/Data/Data.vb#L309
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())
Return pattern
See Also