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

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

Adds a new appointment status item with the specified settings to the collection.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v18.2.dll

Declaration

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

Parameters

Name Type Description
id Object

An object that is the unique status identifier.

type AppointmentStatusType

An AppointmentStatusType enumeration member which indicates availability.

displayName String

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

menuCaption String

A String value which represents the menu caption of the appointment status. This value is assigned to the UserInterfaceObject.MenuCaption property.

color Color

A Color value that specifies the color of the appointment status. This value is assigned to the IAppointmentStatus.Color property.

Returns

Type Description
Int32

An integer value indicating the position at which the new element was inserted.

See Also