corelibraries-devexpress-dot-xtrascheduler-dot-scheduleroptionsviewbase-c8db1df4.md
Gets or sets the day which the scheduler’s view week starts from.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.Desktop.dll
NuGet Package : DevExpress.Scheduler.CoreDesktop
[DefaultValue(FirstDayOfWeek.System)]
public FirstDayOfWeek FirstDayOfWeek { get; set; }
<DefaultValue(FirstDayOfWeek.System)>
Public Property FirstDayOfWeek As FirstDayOfWeek
| Type | Default | Description |
|---|---|---|
| FirstDayOfWeek | System |
A FirstDayOfWeek enumeration value specifying the start day of the week for the View.
|
Available values:
| Name | Description |
|---|---|
| System |
The start day of the week will be obtained from the regional settings of the operating system.
| | Sunday |
The calendar week will start with Sunday.
| | Monday |
The calendar week will start with Monday.
| | Tuesday |
The calendar week will start with Tuesday.
| | Wednesday |
The calendar week will start with Wednesday.
| | Thursday |
The calendar week will start with Thursday.
| | Friday |
The calendar week will start with Friday.
| | Saturday |
The calendar week will start with Saturday.
|
Note that if the FirstDayOfWeek property is set to FirstDayOfWeek.System, then the first day of the week will be obtained from the regional options of the local machine.
The following code snippets (auto-collected from DevExpress Examples) contain references to the FirstDayOfWeek 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.
DialogResult result;
using (Form form = CreateAppointmentRecurrenceForm(patternCopy, Control.OptionsView.FirstDayOfWeek)) {
result = ShowRecurrenceForm(form);
winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L321
DialogResult result;
using (Form form = CreateAppointmentRecurrenceForm(patternCopy, Control.OptionsView.FirstDayOfWeek)) {
result = ShowRecurrenceForm(form);
AppointmentRecurrenceForm dlg = new AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek, controller);
AppointmentRecurrenceForm dlg = new AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek,controller);
winforms-scheduler-country-specific-work-week-holidays/CS/Form1.cs#L17
schedulerControl1.BeginUpdate();
schedulerControl1.OptionsView.FirstDayOfWeek = FirstDayOfWeek.Sunday;
schedulerControl1.WorkDays.Clear();
Dim result As DialogResult
Using form As Form = CreateAppointmentRecurrenceForm(patternCopy, Control.OptionsView.FirstDayOfWeek)
result = ShowRecurrenceForm(form)
winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L387
Dim result As DialogResult
Using form As Form = CreateAppointmentRecurrenceForm(patternCopy, Control.OptionsView.FirstDayOfWeek)
result = ShowRecurrenceForm(form)
Dim dlg As New AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek, controller)
Dim dlg As New AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek,controller)
winforms-scheduler-country-specific-work-week-holidays/VB/Form1.vb#L20
schedulerControl1.BeginUpdate()
schedulerControl1.OptionsView.FirstDayOfWeek = FirstDayOfWeek.Sunday
schedulerControl1.WorkDays.Clear()
See Also
SchedulerOptionsViewBase Class