Back to Devexpress

AppointmentLabelEdit.AppointmentLabel Property

windowsforms-devexpress-dot-xtrascheduler-dot-ui-dot-appointmentlabeledit-28fc6ebe.md

latest4.0 KB
Original Source

AppointmentLabelEdit.AppointmentLabel Property

Gets or sets the label selected in the editor.

Namespace : DevExpress.XtraScheduler.UI

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[Browsable(false)]
public IAppointmentLabel AppointmentLabel { get; set; }
vb
<Browsable(False)>
Public Property AppointmentLabel As IAppointmentLabel

Property Value

TypeDescription
IAppointmentLabel

An object implementing the IAppointmentLabel interface that is the appointment label selected in the editor.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentLabel property.

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.

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Forms/MyAppointmentEditForm.cs#L95

csharp
controller.SetStatus(edStatus.AppointmentStatus);
controller.SetLabel(edLabel.AppointmentLabel);
controller.AllDay = this.checkAllDay.Checked;

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/MyInplaceEditor.cs#L92

csharp
this.appointmentLabelEdit1.Storage = storage;
this.appointmentLabelEdit1.AppointmentLabel = storage.Appointments.Labels.GetById(appointment.LabelKey);
this.edtSubject.Text = appointment.Subject;

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Forms/MyAppointmentEditForm.vb#L108

vb
controller.SetStatus(edStatus.AppointmentStatus)
controller.SetLabel(edLabel.AppointmentLabel)
controller.AllDay = Me.checkAllDay.Checked

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/VB/SchedulerInplaceEditorExample/MyInplaceEditor.vb#L90

vb
Me.appointmentLabelEdit1.Storage = control.Storage
Me.appointmentLabelEdit1.AppointmentLabel = storage.Appointments.Labels.GetById(appointment.LabelKey)
Me.edtSubject.Text = appointment.Subject

See Also

AppointmentLabelEdit Class

AppointmentLabelEdit Members

DevExpress.XtraScheduler.UI Namespace