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.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.dll


public int Add(
    object id,
    AppointmentStatusType type,
    string displayName,
    string menuCaption,
    Brush brush
Public Function Add(
    id As Object,
    type As AppointmentStatusType,
    displayName As String,
    menuCaption As String,
    brush As Brush
) As Integer


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 displayed in status 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.


Type Description

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


Use the Add method to add custom appointment statuses.

See Also