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

AppointmentLabelCollection.CreateNewLabel(Object, String) Method

Creates a new label with the specified identifier and displayed name, and with menu caption which is the same as display name.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.2.dll

Declaration

public AppointmentLabel CreateNewLabel(
    object id,
    string displayName
)

Parameters

Name Type Description
id Object

An object that is the unique label identifier assigned to the UserInterfaceObject.Id property.

displayName String

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

Returns

Type Description
AppointmentLabel

A newly created AppointmentLabel object.

Remarks

This method creates a label with the Color property set to Color.White. The caption of a context menu used to change a label for an appointment is the same as its display name.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateNewLabel(Object, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also