Skip to main content

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.v23.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public ReadOnlyObservableCollection<DateTimeRange> VisibleIntervals { get; }

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:

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.

See Also