Skip to main content

SchedulerViewBase.GetAppointments() Method

Gets the collection of appointments displayed in the current view.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public virtual AppointmentBaseCollection GetAppointments()
Public Overridable Function GetAppointments As AppointmentBaseCollection

Returns

Type Description
AppointmentBaseCollection

A DevExpress.XtraScheduler.AppointmentBaseCollection object that is a collection of appointments.

Remarks

If the current view does not contain appointments, this method returns a new collection which does not contain elements.

Examples

This example demonstrates how to programmatically select all appointments displayed in the current view.

using DevExpress.XtraScheduler;
// ...

AppointmentBaseCollection aptColl = schedulerControl1.ActiveView.GetAppointments();
foreach (Appointment apt in aptColl) {
    schedulerControl1.ActiveView.AddAppointmentSelection(apt);
}
See Also