corelibraries-devexpress-dot-xtrascheduler-dot-schedulercompatibility.md
Specifies the Out-of-Office status color for WinForms Scheduler.
Namespace : DevExpress.XtraScheduler
Assembly : DevExpress.XtraScheduler.v25.2.Core.dll
NuGet Package : DevExpress.Scheduler.Core
public static Color StatusOutOfOfficeColor { get; set; }
Public Shared Property StatusOutOfOfficeColor As Color
| Type | Description |
|---|---|
| Color |
A Color value that is the color used to indicate the appointment Out-of-Office status.
|
In v2017 vol.1, the color indicating the AppointmentStatusType.OutOfOffice appointment status has been changed to the color used in Microsoft Outlook. To restore the color previously used by the WinForms Scheduler, set the StatusOutOfOfficeColor property to #FFD95353.
This code snippet sets the color of the Out-of-Office status to a value used before v2017 vol.1. The SchedulerCompatibility.StatusOutOfOfficeColor is a static property used for an application-wide setting. This line of code should be placed before initialization of all forms containing Scheduler controls.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-scheduler-create-appointments-on-reminder-alert
DevExpress.XtraScheduler.SchedulerCompatibility.StatusOutOfOfficeColor = System.Drawing.Color.FromArgb(0xD9,0x53,0x53);
DevExpress.XtraScheduler.SchedulerCompatibility.StatusOutOfOfficeColor = System.Drawing.Color.FromArgb(&HD9,&H53,&H53)
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the StatusOutOfOfficeColor 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-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Program.cs#L17
#region #StatusOutOfOfficeColor
DevExpress.XtraScheduler.SchedulerCompatibility.StatusOutOfOfficeColor = System.Drawing.Color.FromArgb(0xD9,0x53,0x53);
#endregion #StatusOutOfOfficeColor
winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Program.vb#L17
' #Region "#StatusOutOfOfficeColor"
DevExpress.XtraScheduler.SchedulerCompatibility.StatusOutOfOfficeColor = System.Drawing.Color.FromArgb(&HD9,&H53,&H53)
' #End Region ' #StatusOutOfOfficeColor
See Also