Back to Devexpress

SchedulerCompatibility.StatusOutOfOfficeColor Property

corelibraries-devexpress-dot-xtrascheduler-dot-schedulercompatibility.md

latest4.1 KB
Original Source

SchedulerCompatibility.StatusOutOfOfficeColor Property

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

Declaration

csharp
public static Color StatusOutOfOfficeColor { get; set; }
vb
Public Shared Property StatusOutOfOfficeColor As Color

Property Value

TypeDescription
Color

A Color value that is the color used to indicate the appointment Out-of-Office status.

|

Remarks

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.

Example

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

csharp
DevExpress.XtraScheduler.SchedulerCompatibility.StatusOutOfOfficeColor = System.Drawing.Color.FromArgb(0xD9,0x53,0x53);
vb
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

csharp
#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

vb
' #Region "#StatusOutOfOfficeColor"
            DevExpress.XtraScheduler.SchedulerCompatibility.StatusOutOfOfficeColor = System.Drawing.Color.FromArgb(&HD9,&H53,&H53)
' #End Region ' #StatusOutOfOfficeColor

See Also

SchedulerCompatibility Class

SchedulerCompatibility Members

DevExpress.XtraScheduler Namespace