Back to Devexpress

AppointmentLabelEdit.Storage Property

windowsforms-devexpress-dot-xtrascheduler-dot-ui-dot-appointmentlabeledit-ed016f42.md

latest5.6 KB
Original Source

AppointmentLabelEdit.Storage Property

Gets or sets the SchedulerStorage object that contains items to fill an editor.

Namespace : DevExpress.XtraScheduler.UI

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(null)]
public ISchedulerStorage Storage { get; set; }
vb
<DefaultValue(Nothing)>
Public Property Storage As ISchedulerStorage

Property Value

TypeDefaultDescription
ISchedulerStoragenull

A ISchedulerStorage object representing a storage for the Scheduler control.

|

Remarks

This property is set automatically when a control is dropped onto a form containing the SchedulerStorage component.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Storage 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-custom-appointment-edit-form/CS/SchedulerDbExample/CustomAppointmentForm.cs#L58

csharp
this.edtShowTimeAs.Storage = this.storage;
this.edtLabel.Storage = storage;
this.edtResource.SchedulerControl = control;

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

csharp
edStatus.Storage = control.DataStorage;
edLabel.Storage = control.DataStorage;
appointmentResourcesEdit1.SchedulerControl=control;

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

csharp
SchedulerDataStorage storage = control.DataStorage as SchedulerDataStorage;
this.appointmentLabelEdit1.Storage = storage;
this.appointmentLabelEdit1.AppointmentLabel = storage.Appointments.Labels.GetById(appointment.LabelKey);

winforms-scheduler-print-appointments-using-reports/CS/PrintingViaReports/MyAppointmentEditForm.cs#L186

csharp
edStatus.Storage = control.Storage;
edLabel.Storage = control.Storage;

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/CustomAppointmentForm.vb#L68

vb
Me.edtShowTimeAs.Storage = Me.storage_Renamed
Me.edtLabel.Storage = storage_Renamed
Me.edtResource.SchedulerControl = control

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

vb
edStatus.Storage = control.DataStorage
edLabel.Storage = control.DataStorage
appointmentResourcesEdit1.SchedulerControl=control

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

vb
Dim storage As SchedulerStorage = control.Storage
Me.appointmentLabelEdit1.Storage = control.Storage
Me.appointmentLabelEdit1.AppointmentLabel = storage.Appointments.Labels.GetById(appointment.LabelKey)

winforms-scheduler-print-appointments-using-reports/VB/PrintingViaReports/MyAppointmentEditForm.vb#L206

vb
edStatus.Storage = control.Storage
edLabel.Storage = control.Storage

See Also

AppointmentLabelEdit Class

AppointmentLabelEdit Members

DevExpress.XtraScheduler.UI Namespace