wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-46eb922d.md
Provides access to the currently visible time cell intervals. This is a dependency property.
Namespace : DevExpress.Xpf.Scheduling
Assembly : DevExpress.Xpf.Scheduling.v25.2.dll
NuGet Package : DevExpress.Wpf.Scheduling
public ReadOnlyObservableCollection<DateTimeRange> VisibleIntervals { get; }
Public ReadOnly Property VisibleIntervals As ReadOnlyObservableCollection(Of DateTimeRange)
| Type | Description |
|---|---|
| ReadOnlyObservableCollection<DateTimeRange> |
A ReadOnlyObservableCollection<T><DateTimeRange,> object that is the collection of visible time intervals.
|
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:
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.
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.
XtraSchedulerReport1 report = new XtraSchedulerReport1();
DateTimeRange dateTimeRange = scheduler.VisibleIntervals[0];
scheduler.SchedulerPrintAdapter.DateTimeRange = dateTimeRange;
Dim report As XtraSchedulerReport1 = New XtraSchedulerReport1()
Dim dateTimeRange As DateTimeRange = scheduler.VisibleIntervals(0)
scheduler.SchedulerPrintAdapter.DateTimeRange = dateTimeRange
See Also