AppointmentBaseCollection.GetAppointments(TimeInterval) Method
Retrieves the collection of appointments that are in the specified time interval.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.Core.dll
NuGet Package: DevExpress.Scheduler.Core
#Declaration
public virtual AppointmentBaseCollection GetAppointments(
TimeInterval interval
)
#Parameters
Name | Type | Description |
---|---|---|
interval | Time |
A Time |
#Returns
Type | Description |
---|---|
Appointment |
An Appointment |
#Remarks
The GetAppointments method gets appointments contained in the storage and passed through filters. Appointment filters are the AppointmentStorageBase.Filter property and the SchedulerStorageBase.FilterAppointment event.
If an appointment’s time interval partially overlaps the specified interval, this appointment is also included in the collection returned.
Note that if the AppointmentBaseCollection is previously sorted by the Appointment.Start property, then you should use the AppointmentBaseCollection.GetAppointmentsFromSortedCollection method, which works much more faster then GetAppointments.