Skip to main content

AppointmentStatusCollection.GetDefaultStatusColor(AppointmentStatusType) Method

Obtains the default status color by the status type.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

Declaration

public static Color GetDefaultStatusColor(
    AppointmentStatusType type
)

Parameters

Name Type Description
type AppointmentStatusType

An AppointmentStatusType enumeration member that specified the appointment status.

Returns

Type Description
Color

A Color that is the color use to create a brush to paint the appointment status.

Remarks

By default, the Statuses collection contains the following items:

Standard Brush Standard ARGB Color Value Display Name StatusId
AppointmentStatus.Free.png #FFFFFFFF Free 0
AppointmentStatus.Tentative.png #FF4A87E2 Tentative 1
AppointmentStatus.Busy.png #FF4A87E2 Busy 2
AppointmentStatus.OutOfOffice.png #FF800080 Out Of Office 3
AppointmentStatus.WorkingElsewhere #FF937BD1 Working Elsewhere 4

If an appointment has a label, the status brush uses the label’s color instead of default color for all status types except the AppointmentStatusType.OutOfOffice type, which retains its default color.

See Also