Skip to main content

SchedulerViewBase.AddAppointmentSelection(Appointment) Method

Selects the specified appointment.

Namespace: DevExpress.Xpf.Scheduler

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

Declaration

public void AddAppointmentSelection(
    Appointment apt
)
Public Sub AddAppointmentSelection(
    apt As Appointment
)

Parameters

Name Type Description
apt Appointment

A Appointment object that specifies the appointment to be selected.

Remarks

The AddAppointmentSelection method can be used to add the specified appointment to the SchedulerControl.SelectedAppointments collection.

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