Skip to main content

AppointmentLabelCollection.Add(String, String, Color) Method

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

Namespace: DevExpress.Web.ASPxScheduler

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

NuGet Package: DevExpress.Web.Scheduler


public int Add(
    string displayName,
    string menuCaption,
    Color labelColor


Name Type Description
displayName String

A string that is the name of the label displayed in label editors.

menuCaption String

A string containing the menu caption for the command used to set the label for an appointment.

labelColor Color

A Color specifying the color that represents the label.


Type Description

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

See Also