Skip to main content

AppointmentLabelCollection.Add(Color, String) Method

Creates a new label with the specified color and displayed name, and appends it to the collection of appointment labels.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

public int Add(
    Color color,
    string displayName
)

Parameters

Name Type Description
color Color

A Color object specifying the label’s color.

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 of the newly added label in the collection.

Remarks

This method creates a label with an identifier provided automatically by the AppointmentLabelCollection object. The name of the label used in menus is the same as its display name.

See Also