Skip to main content

AppointmentLabelCollection.Add(Color, String) Method

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

Namespace: DevExpress.Web.ASPxScheduler

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

NuGet Package: DevExpress.Web.Scheduler

#Declaration

public int Add(
    Color color,
    string displayName
)

#Parameters

Name Type Description
color Color

A Color specifying the color that represents the label.

displayName String

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

#Returns

Type Description
Int32

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

See Also