Back to Devexpress

RecurrenceInfo.WeekDays Property

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

latest8.1 KB
Original Source

RecurrenceInfo.WeekDays Property

Gets or sets the day/days in a week on which the appointment occurs.

Namespace : DevExpress.XtraScheduler

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

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public WeekDays WeekDays { get; set; }
vb
Public Property WeekDays As WeekDays

Property Value

TypeDescription
WeekDays

The WeekDays enumeration’s value specifying the day/days in a week.

|

Available values:

NameDescription
Sunday

Specifies Sunday.

| | Monday |

Specifies Monday.

| | Tuesday |

Specifies Tuesday.

| | Wednesday |

Specifies Wednesday.

| | Thursday |

Specifies Thursday.

| | Friday |

Specifies Friday.

| | Saturday |

Specifies Saturday.

| | WeekendDays |

Specifies Saturday and Sunday.

| | WorkDays |

Specifies work days ( Monday , Tuesday , Wednesday , Thursday and Friday ).

| | EveryDay |

Specifies every day of the week.

|

Remarks

The WeekDays property defines a specific day/days in a week which is used to calculate the appointment occurrences in the recurrence pattern.

Note that for the occurrence frequency of the monthly or yearly type (the RecurrenceInfo.Type property is set to either RecurrenceType.Monthly or RecurrenceType.Yearly value), the WeekDays property is in effect if the RecurrenceInfo.WeekOfMonth property is not set to the WeekOfMonth.None value.

The pictures in the following table demonstrate how the WeekDays property can be assigned for the recurrence pattern in the Appointment Recurrence dialog.

|

RecurrenceInfo.Type = RecurrenceType.Daily

|

| |

RecurrenceInfo.Type = RecurrenceType.Weekly

|

| |

RecurrenceInfo.Type = RecurrenceType.Monthly

|

| |

RecurrenceInfo.Type = RecurrenceType.Yearly

|

|

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

csharp
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;
recInfo.Range = RecurrenceRange.EndByDate;

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

csharp
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;
recInfo.Range = RecurrenceRange.EndByDate;

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

csharp
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;
recInfo.Range = RecurrenceRange.EndByDate;

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

csharp
recInfo.End = pattern.EndTime.AddDays(dayCount);
recInfo.WeekDays = WeekDays.WorkDays;
recInfo.Range = RecurrenceRange.EndByDate;

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

vb
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays
recInfo.Range = RecurrenceRange.EndByDate

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

vb
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays
recInfo.Range = RecurrenceRange.EndByDate

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

vb
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays
recInfo.Range = RecurrenceRange.EndByDate

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

vb
recInfo.End = pattern.EndTime.AddDays(dayCount)
recInfo.WeekDays = WeekDays.WorkDays
recInfo.Range = RecurrenceRange.EndByDate

Implements

WeekDays

See Also

None

Type

How to: Create Appointments with Various Recurrence Types Programmatically

RecurrenceInfo Class

RecurrenceInfo Members

DevExpress.XtraScheduler Namespace