AppointmentLabelCollection.CreateNewLabel(Object, String, String, Color) Method
Creates a new label with the specified identifier, display name, menu caption and color.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v18.2.dll
Declaration
public AppointmentLabel CreateNewLabel(
object id,
string displayName,
string menuCaption,
Color color
)
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. |
menuCaption | String | A string that is the caption of a context menu used to change a label for an appointment. |
color | Color | A Color object that is the label’s color. |
Returns
Type | Description |
---|---|
AppointmentLabel | A newly created AppointmentLabel object. |
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateNewLabel(Object, String, String, Color) 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.