SchedulerControl.GetAppointments(DateTimeRange, Boolean) Method
Returns the collection of appointments for the specified time interval.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
#Declaration
public List<AppointmentItem> GetAppointments(
DateTimeRange interval,
bool visibleResourcesOnly = true
)
#Parameters
Name | Type | Description |
---|---|---|
interval | Date |
A DevExpress. |
#Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
visible |
Boolean | True | true, to return appointments available in the current view; otherwise, false. |
#Returns
Type |
---|
List<Appointment |
#Remarks
If the visibleResourcesOnly parameter is set to false, 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 Get
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.