Skip to main content

AppointmentStatusCollection.Add(Color, String, String) Method

Creates a status with the specified settings and adds it to the collection.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v23.2.dll

NuGet Package: DevExpress.Win.Scheduler


public int Add(
    Color color,
    string displayName,
    string menuCaption


Name Type Description
color Color

A Color structure used to create a SolidBrush object for painting a status strip. The newly created brush is accessible with the AppointmentStatus.Brush property.

displayName String

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

menuCaption String

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


Type Description

An integer that is the position of status in the collection.


This method creates a status with an identifier provided automatically by the AppointmentStatusCollection object. The type of the added status is set to AppointmentStatusType.Custom.

See Also