Skip to main content

AppointmentStatusCollection.Add(Object, AppointmentStatusType, String, String, Brush) Method

Creates a new status with the specified settings and adds it to the collection of appointment statuses.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v23.2.dll

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public int Add(
    object id,
    AppointmentStatusType type,
    string displayName,
    string menuCaption,
    Brush brush
)

Parameters

Name Type Description
id Object

An object that is the unique status identifier.

type AppointmentStatusType

An AppointmentStatusType enumeration member that is the status type.

displayName String

A string that is the name of the status used in editors.

menuCaption String

A string used in a context menu that allows changing the status of an appointment.

brush Brush

A Brush structure that specifies the color brush used to paint a status strip.

Returns

Type Description
Int32

An integer value indicating the position of the newly added status in the collection.

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

Use the Add method to add custom appointment statuses.

See Also