Skip to main content

AppointmentStatusCollection.Add(AppointmentStatusType, String, String, Brush) 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

Declaration

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

Parameters

Name Type Description
type AppointmentStatusType

An AppointmentStatusType enumeration member which indicates the availability.

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.

brush Brush

A Brush descendant used to draw a rectangle which indicates a status.

Returns

Type Description
Int32

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

See Also