IAppointmentLabelStorage Interface
An interface that defines a storage which holds appointment labels.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v18.1.Core.dll
Declaration
public interface IAppointmentLabelStorage :
IStorageCollection<IAppointmentLabel>,
IEnumerable<IAppointmentLabel>,
ICollection,
IEnumerable,
IDisposable
Related API Members
The following members accept/return IAppointmentLabelStorage objects:
Remarks
An object with the IAppointmentLabelStorage interface can be accessed using the IAppointmentStorageBase.Labels property or the SchedulerControl.DataStorage.Appointments.Labels notation.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-schedulercontrol-api-t224044
scheduler.InitAppointmentDisplayText += scheduler_InitAppointmentDisplayText;
scheduler.ActiveView.LayoutChanged();
public static void scheduler_InitAppointmentDisplayText(object sender, AppointmentDisplayTextEventArgs e) {
SchedulerControl scheduler = sender as SchedulerControl;
IAppointmentLabel label = scheduler.DataStorage.Appointments.Labels.GetById(e.Appointment.LabelKey);
e.Description = String.Format("Label Info:\nDisplayName = '{0}'\nID = '{1}'", label.DisplayName, label.Id.ToString());
}
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the IAppointmentLabelStorage interface.
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.