Back to Devexpress

SchedulerControl.VisibleIntervals Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-46eb922d.md

latest4.2 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public ReadOnlyObservableCollection<DateTimeRange> VisibleIntervals { get; }
vb
Public ReadOnly Property VisibleIntervals As ReadOnlyObservableCollection(Of DateTimeRange)

Property Value

TypeDescription
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.

wpf-scheduler-use-scheduler-report-to-print-and-export-appointments/CS/PrintingExample/MyPrintHelper.cs#L15

csharp
XtraSchedulerReport1 report = new XtraSchedulerReport1();
DateTimeRange dateTimeRange = scheduler.VisibleIntervals[0];
scheduler.SchedulerPrintAdapter.DateTimeRange = dateTimeRange;

wpf-scheduler-use-scheduler-report-to-print-and-export-appointments/VB/PrintingExample/MyPrintHelper.vb#L15

vb
Dim report As XtraSchedulerReport1 = New XtraSchedulerReport1()
Dim dateTimeRange As DateTimeRange = scheduler.VisibleIntervals(0)
scheduler.SchedulerPrintAdapter.DateTimeRange = dateTimeRange

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace