RecurrenceInfo.WeekOfMonth Property
Gets or sets the occurrence number of the week in a month for the recurrence pattern.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v14.2.Core.dll
#Declaration
#Property Value
Type | Description |
---|---|
Week |
A Week |
#Remarks
The WeekOfMonth property specifies the week in a month in which the occurrences will occur. Then the RecurrenceInfo.WeekDays property can be used to specify the specific days in these weeks on which the occurrences will occur.
The RecurrenceInfo.Periodicity property specifies whether the frequency of the occurrences is in months or years.
For instance, if you are using the yearly basis and you want an appointment to occur only for every third week of a specific month, you can set the WeekOfMonth property to the WeekOfMonth.Third value and then specify the desired day and month via the RecurrenceInfo.WeekDays and RecurrenceInfo.Month properties.
Note that if the WeekOfMonth property is set to WeekOfMonth.None, the RecurrenceInfo.WeekDays property is not in effect and the corresponding appointment's reoccurrences are calculated on the basis of a particular day using the RecurrenceInfo.DayNumber property together with either the RecurrenceInfo.Periodicity property (for the monthly basis) or RecurrenceInfo.Month property (for the yearly basis).
The images in the following table demonstrate the ways in which the WeekOfMonth property can be assigned for the recurrence pattern in the Appointment Recurrence dialog.