Skip to main content
A newer version of this page is available. .

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

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

public int Add(
    AppointmentStatusType type,
    string displayName,
    string menuCaption,
    Color color
)

Parameters

Name Type Description
type AppointmentStatusType

A AppointmentStatusType enumeration member specifying the status type.

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.

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.

Returns

Type Description
Int32

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

Remarks

This method creates a status with an identifier provided automatically by the AppointmentStatusCollection object.

See Also