SchedulerControl.VisibleIntervals Property
Provides access to the currently visible time cell intervals. This is a dependency property.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.1.dll
NuGet Package: DevExpress.Wpf.Scheduling
Declaration
Property Value
Type | Description |
---|---|
ReadOnlyObservableCollection<DateTimeRange> | A ReadOnlyObservableCollection<T><DateTimeRange,> object that is the collection of visible time intervals. |
Remarks
Use the VisibleIntervals to obtain the datetime ranges currently displayed by the SchedulerControl. Handle the SchedulerControl.VisibleIntervalsChanged event to perform necessary action before visible intervals are changed.
The number of items in the collection returned by the VisibleIntervals property depends on the number of days, weeks or time intervals simultaneously displayed within the current view. These parameters are represented by the following properties:
- Day View - DayView.DayCount;
- Work Week View - SchedulerControl.WorkDays;
- Timeline View - TimelineView.IntervalCount.
Note
The SchedulerControl.Start property is used as a base for calculating visible intervals when rendering a view, but the actual intervals displayed in the view are available using the SchedulerControl.VisibleIntervals
property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the VisibleIntervals property.
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.