Skip to main content

YearlyRecurrenceControl.WeekOfMonthNumber Property

Gets or sets the specified number of the week in a month when the Day of Week type of yearly appointment recurrence is active in the YearlyRecurrenceControl control.

Namespace: DevExpress.Xpf.Scheduler.UI

Assembly: DevExpress.Xpf.Scheduler.v24.1.dll

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public WeekOfMonth WeekOfMonthNumber { get; set; }

Property Value

Type Description
WeekOfMonth

A WeekOfMonth enumeration member.

Available values:

Name Description
None

There isn’t any recurrence rule based upon the weeks in a month.

First

The recurring event will occur once a month, on the specified day or days of the first week in the month.

Second

The recurring event will occur once a month, on the specified day or days of the second week in the month.

Third

The recurring event will occur once a month, on the specified day or days of the third week in the month.

Fourth

The recurring event will occur once a month, on the specified day or days of the fourth week in the month.

Last

The recurring event will occur once a month, on the specified day or days of the last week in the month.

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

The WeekOfMonthNumber property value depends on the yearly recurrence type currently selected in the YearlyRecurrenceControl control (YearlyRecurrenceControl.YearlyRecurrenceTypes, YearlyRecurrenceControl.YearlyRecurrenceType).

If the Day of Week recurrence type is active (the WeekOfMonth enumeration member assigned to the YearlyRecurrenceControl.WeekOfMonth property is other than WeekOfMonth.None), WeekOfMonthNumber returns the YearlyRecurrenceControl.WeekOfMonth property value. If you set the WeekOfMonthNumber property to one of the WeekOfMonth members, except WeekOfMonth.None, the YearlyRecurrenceControl.WeekOfMonth property value will be changed to this value.

If the Day Number recurrence type is active (the YearlyRecurrenceControl.WeekOfMonth property value is set to WeekOfMonth.None), WeekOfMonthNumber returns WeekOfMonth.First, and setting the WeekOfMonthNumber property will not change the YearlyRecurrenceControl.WeekOfMonth property value.

See Also