AppointmentLabelCollection.CreateNewLabel(String) Method

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

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.dll

Declaration

public AppointmentLabel CreateNewLabel(
    string displayName
)
Public Function CreateNewLabel(
    displayName As String
) As AppointmentLabel

Parameters

Name Type Description
displayName String

A string that is the label name used for identification in label editors.

Returns

Type Description
AppointmentLabel

A newly created AppointmentLabel object.

Remarks

This method creates a label with an identifier provided automatically by the AppointmentLabelCollection object. The label's Color property is 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.

See Also