wpf-devexpress-dot-xpf-dot-scheduling-dot-appointmentitem-1796e977.md
Gets or sets the identifier of the label object associated with the appointment.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public object LabelId { get; set; }
Public Property LabelId As Object
| Type | Description |
|---|---|
| Object |
An object that specifies the unique identifier of the AppointmentLabelItem.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the LabelId 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.
AppointmentItem draggedAppointmentSource = e.SourceAppointments.First();
if (draggedAppointment.LabelId != null)
if ((int)draggedAppointment.LabelId == 1 && (draggedAppointment.Start != ((MedicalAppointment)draggedAppointmentSource.SourceObject).StartTime))
protected override object Convert(object sender, AppointmentItemEventArgs args) {
args.Appointment.LabelId = 1;
args.Appointment.Reminders.Clear();
wpf-scheduler-create-recurrent-appointments-in-code/CS/RecurrenceExamples/MainWindow.xaml.cs#L29
apt.Subject = subj;
apt.LabelId = categoryId;
return apt;
Dim draggedAppointmentSource As AppointmentItem = e.SourceAppointments.First()
If draggedAppointment.LabelId IsNot Nothing Then
If CInt(draggedAppointment.LabelId) = 1 AndAlso (draggedAppointment.Start <> CType(draggedAppointmentSource.SourceObject, MedicalAppointment).StartTime) Then e.Cancel = True
Protected Overrides Function Convert(ByVal sender As Object, ByVal args As AppointmentItemEventArgs) As Object
args.Appointment.LabelId = 1
args.Appointment.Reminders.Clear()
wpf-scheduler-create-recurrent-appointments-in-code/VB/RecurrenceExamples/MainWindow.xaml.vb#L29
apt.Subject = subj
apt.LabelId = categoryId
Return apt
See Also