Gets or sets the occurrence number of the week in a month for the recurrence pattern.
A WeekOfMonth enumeration value that specifies a week in every month.
There isn’t any recurrence rule based upon the weeks in a month.
The recurring event will occur once a month, on the specified day or days of the first week in the month.
The recurring event will occur once a month, on the specified day or days of the second week in the month.
The recurring event will occur once a month, on the specified day or days of the third week in the month.
The recurring event will occur once a month, on the specified day or days of the fourth week in the month.
The recurring event will occur once a month, on the specified day or days of the last week in the month.
The WeekOfMonth property specifies the week in a month that the occurrences will occur in. Subsequently the RecurrenceInfo.WeekDays property is used to specify the days in the weeks.
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 occurrences 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 pictures in the following table demonstrate the ways in which the WeekOfMonth property can be assigned for the recurrence pattern in the Appointment Recurrence dialog.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the WeekOfMonth property.
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.