Skip to main content

BootstrapAppointmentLabelCollection.Add(Object, String, String, String) Method

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

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.1.dll

NuGet Package: DevExpress.Web.Bootstrap

Declaration

public int Add(
    object id,
    string text,
    string backgroundCssClass,
    string textCssClass
)

Parameters

Name Type Description
id Object

An object that is the unique label identifier.

text String

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

backgroundCssClass String

A string value that specifies the name of a CSS class applied to the label’s background element.

textCssClass String

A string value that specifies the name of a CSS class applied to the label’s text element.

Returns

Type Description
Int32

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

See Also