CalendarControlBase.WeekNumberRule Property
Gets or sets a rule which determines the first week of the year.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v18.2.dll
Declaration
[DefaultValue(WeekNumberRule.Default)]
[DXCategory("Behavior")]
public WeekNumberRule WeekNumberRule { get; set; }
Property Value
Type | Default | Description |
---|---|---|
WeekNumberRule | **Default** | The rule that determines the first week of the year. |
Available values:
Name | Description |
---|---|
Default | The rule specified by the System.Globalization.DateTimeFormatInfo.CalendarWeekRule property which defines a calendar week for a specific culture. The value is -1. |
FirstDay | Indicates that the first week of the year starts on the first day of the year and ends before the following designated first day of the week. The value is 0. |
FirstFullWeek | Indicates that the first week of the year is the first week with four or more days before the designated first day of the week. The value is 2. |
FirstFourDayWeek | Indicates that the first week of the year begins on the first occurrence of the designated first day of the week on or after the first day of the year. The value is 1. |