Skip to main content

AppointmentStatusCollection Class

A collection of appointment statuses.

Namespace: DevExpress.Xpf.Scheduler

Assembly: DevExpress.Xpf.Scheduler.v23.2.dll

NuGet Package: DevExpress.Wpf.Scheduler

Declaration

public class AppointmentStatusCollection :
    UserInterfaceObjectCollection<IAppointmentStatus>,
    IAppointmentStatusStorage,
    IStorageCollection<IAppointmentStatus>,
    IEnumerable<IAppointmentStatus>,
    IEnumerable,
    ICollection,
    IDisposable

The following members return AppointmentStatusCollection objects:

Remarks

Important

You are viewing documentation for the legacy WPF Scheduler control. If you’re starting a new project, we strongly recommend that you use a new control declared in the DevExpress.Xpf.Scheduling namespace. If you decide to upgrade an existing project in order to switch to the updated scheduler control, see the Migration Guidelines document.

The AppointmentStatusCollection represents a collection of AppointmentStatus objects. The properties and methods declared by this class can be used to perform common collection operations such as adding new or deleting existing items.

An instance of the AppointmentStatusCollection class can be accessed via the AppointmentStorage.Statuses property of the AppointmentStorage object.

Example

This example demonstrates how to add items to the collection of appointment statuses within the appointment storage using the AppointmentStorage.Statuses property.

<dxsch:AppointmentStorage>
    <dxsch:AppointmentStorage.Statuses>
        <dxsch:AppointmentStatus Color="YellowGreen" DisplayName="Reserved" MenuCaption="Reserved"/>
        <dxsch:AppointmentStatus Color="Green" DisplayName="Confirmed" MenuCaption="Confirmed"/>
    </dxsch:AppointmentStorage.Statuses>
</dxsch:AppointmentStorage>
See Also