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

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

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v20.1.dll

Declaration

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

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.

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.

See Also