Skip to main content

SchedulerViewBase.VisibleIntervals Property

OBSOLETE

You should use 'GetVisibleIntervals' and 'SetVisibleIntervals' methods instead

Gets the collection of visible intervals (for instance, days or weeks) displayed by the View.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v23.2.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("You should use 'GetVisibleIntervals' and 'SetVisibleIntervals' methods instead", true)]
public TimeIntervalCollection VisibleIntervals { get; }

Property Value

Type Description
TimeIntervalCollection

A TimeIntervalCollection object that represents the collection of time intervals which are displayed within the View.

Remarks

The VisibleIntervals property provides access to the collection of time intervals displayed by the current View.

For instance, if the View’s type is of the day basis (DayView or WorkWeekView) the collection returned by the VisibleIntervals property contains the day intervals displayed by the View (note that the number of items in the collection depends upon the particular View type: for DayViews their number depends upon the DayView.DayCount property setting and for WorkWeekViews - upon the value of the WeekDays.WorkDays property).

For the views which are constructed on the week basis (WeekView and MonthView) the returned collection contains week intervals (a WeekView‘s VisibleIntervals property returns a collection with a single item while the number of week intervals within the MonthView‘s VisibleIntervals collection is specified by the MonthView.WeekCount property).

Hint: to get the time interval which encompasses all visible intervals in a VisibleIntervals collection, use the TimeIntervalCollection.Duration property.

See Also