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
Declaration
Parameters
Name | Type | Description |
---|---|---|
interval | TimeInterval | A TimeInterval object specifying the required time interval. |
Returns
Type | Description |
---|---|
AppointmentBaseCollection | An AppointmentBaseCollection object representing the collection of appointments which belong to the specified time interval. Note, that time intervals bounds are excluded in this case. |
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.