Back to Devexpress

IAppointmentStatusStorage Interface

corelibraries-devexpress-dot-xtrascheduler-028ee98d.md

latest3.1 KB
Original Source

IAppointmentStatusStorage Interface

An interface that defines a storage which holds appointment statuses.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.Core.dll

NuGet Package : DevExpress.Scheduler.Core

Declaration

csharp
public interface IAppointmentStatusStorage :
    IStorageCollection<IAppointmentStatus>,
    IEnumerable<IAppointmentStatus>,
    IEnumerable,
    ICollection,
    IDisposable
vb
Public Interface IAppointmentStatusStorage
    Inherits IStorageCollection(Of IAppointmentStatus),
             IEnumerable(Of IAppointmentStatus),
             IEnumerable,
             ICollection,
             IDisposable

The following members return IAppointmentStatusStorage objects:

Remarks

An object with the IAppointmentStatusStorage interface can be accessed using the IAppointmentStorageBase.Statuses property or the SchedulerControl.DataStorage.Appointments.Statuses notation.

Example

csharp
scheduler.InitAppointmentDisplayText += scheduler_InitAppointmentDisplayText_1;
    scheduler.ActiveView.LayoutChanged();
public static void scheduler_InitAppointmentDisplayText_1(object sender, AppointmentDisplayTextEventArgs e) {
    SchedulerControl scheduler = sender as SchedulerControl;
    IAppointmentStatus status = scheduler.DataStorage.Appointments.Statuses.GetById(e.Appointment.StatusKey);
    e.Description = String.Format("Status Info:\nDisplayName = '{0}'\nID = '{1}'", status.DisplayName, status.Id.ToString());
}
vb
AddHandler scheduler.InitAppointmentDisplayText, AddressOf scheduler_InitAppointmentDisplayText_1
    scheduler.ActiveView.LayoutChanged()
Public Shared Sub scheduler_InitAppointmentDisplayText_1(ByVal sender As Object, ByVal e As AppointmentDisplayTextEventArgs)
    Dim scheduler As SchedulerControl = TryCast(sender, SchedulerControl)
    Dim status As IAppointmentStatus = scheduler.DataStorage.Appointments.Statuses.GetById(e.Appointment.StatusKey)
    e.Description = String.Format("Status Info:" & ControlChars.Lf & "DisplayName = '{0}'" & ControlChars.Lf & "ID = '{1}'", status.DisplayName, status.Id.ToString())
End Sub

See Also

IAppointmentStatusStorage Members

IAppointmentStatus

Statuses

DevExpress.XtraScheduler Namespace