SchedulerControl.GetAppointments(DateTimeRange, Object) Method
Returns the collection of appointments for the specified time interval.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
public IEnumerable<AppointmentItem> GetAppointments(
DateTimeRange interval,
object resourceId
)
Parameters
Name | Type | Description |
---|---|---|
interval | DateTimeRange | A DevExpress.Mvvm.DateTimeRange value that is the time interval for which to get appointments. |
resourceId | Object | A System.Object value that specifies the unique identifier of the resource for which to return the associated appointments. |
Returns
Type | Description |
---|---|
IEnumerable<AppointmentItem> | A collection of DevExpress.Xpf.Scheduling.AppointmentItem objects. |
Remarks
The collection returned by the GetAppointments method includes appointments of the AppointmentType.Pattern type that are not shown to the user. The GetPattern method allows you to obtain the Pattern appointment for the specified recurrence.
Tip
The collection returned by the GetAppointments method does not include appointments of the AppointmentType.Occurrence type. Appointments of this type are generated dynamically at runtime.
The DataSource.AppointmentsSource property specifies the data source of appointments.
Appointments are created when the SchedulerControl is visually initialized. If you call the GetAppointments method before the initialization, it returns an empty collection.