Back to Devexpress

SchedulerOptionsViewBase.FirstDayOfWeek Property

corelibraries-devexpress-dot-xtrascheduler-dot-scheduleroptionsviewbase-c8db1df4.md

latest7.1 KB
Original Source

SchedulerOptionsViewBase.FirstDayOfWeek Property

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

Declaration

csharp
[DefaultValue(FirstDayOfWeek.System)]
public FirstDayOfWeek FirstDayOfWeek { get; set; }
vb
<DefaultValue(FirstDayOfWeek.System)>
Public Property FirstDayOfWeek As FirstDayOfWeek

Property Value

TypeDefaultDescription
FirstDayOfWeekSystem

A FirstDayOfWeek enumeration value specifying the start day of the week for the View.

|

Available values:

NameDescription
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.

|

Remarks

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.

winforms-scheduler-localizer-translate-ui/CS/SchedulerLocalizerExample/OutlookAppointmentForm.cs#L394

csharp
DialogResult result;
using (Form form = CreateAppointmentRecurrenceForm(patternCopy, Control.OptionsView.FirstDayOfWeek)) {
    result = ShowRecurrenceForm(form);

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L321

csharp
DialogResult result;
using (Form form = CreateAppointmentRecurrenceForm(patternCopy, Control.OptionsView.FirstDayOfWeek)) {
    result = ShowRecurrenceForm(form);

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Forms/MyAppointmentEditForm.cs#L69

csharp
AppointmentRecurrenceForm dlg = new AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek, controller);

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/MyAppointmentEditForm.cs#L98

csharp
AppointmentRecurrenceForm dlg = new AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek,controller);

winforms-scheduler-country-specific-work-week-holidays/CS/Form1.cs#L17

csharp
schedulerControl1.BeginUpdate();
schedulerControl1.OptionsView.FirstDayOfWeek = FirstDayOfWeek.Sunday;
schedulerControl1.WorkDays.Clear();

winforms-scheduler-localizer-translate-ui/VB/SchedulerLocalizationExample_VB/OutlookAppointmentForm.vb#L435

vb
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

vb
Dim result As DialogResult
Using form As Form = CreateAppointmentRecurrenceForm(patternCopy, Control.OptionsView.FirstDayOfWeek)
    result = ShowRecurrenceForm(form)

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Forms/MyAppointmentEditForm.vb#L79

vb
Dim dlg As New AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek, controller)

winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/MyAppointmentEditForm.vb#L106

vb
Dim dlg As New AppointmentRecurrenceForm(patternCopy, control.OptionsView.FirstDayOfWeek,controller)

winforms-scheduler-country-specific-work-week-holidays/VB/Form1.vb#L20

vb
schedulerControl1.BeginUpdate()
schedulerControl1.OptionsView.FirstDayOfWeek = FirstDayOfWeek.Sunday
schedulerControl1.WorkDays.Clear()

See Also

SchedulerOptionsViewBase Class

SchedulerOptionsViewBase Members

DevExpress.XtraScheduler Namespace