Skip to main content
A newer version of this page is available. .

SchedulerViewBase.ChangeAppointmentSelection(Appointment) Method

Selects a single appointment.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v19.1.dll

Declaration

public virtual void ChangeAppointmentSelection(
    Appointment apt
)

Parameters

Name Type Description
apt Appointment

An Appointment object to select.

Remarks

The ChangeAppointmentSelection method can be used to make a specific appointment the only selected appointment within the View (that is the SchedulerControl.SelectedAppointments collection will contain only the specified appointment after calling this method).

The values of the SchedulerViewBase.SelectedInterval, SchedulerControl.SelectedInterval and SchedulerControl.SelectedResource properties are changed based on the newly selected appointment’s settings.

Calling the ChangeAppointmentSelection method results in the SchedulerControl.SelectionChanged event being invoked.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ChangeAppointmentSelection(Appointment) method.

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.

See Also