Skip to main content

DayIntervalCollection Class

Contains time intervals of a fixed one day duration.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v22.1.Core.dll


public class DayIntervalCollection :

The following members return DayIntervalCollection objects:


The DayIntervalCollection class is a collection that contains time intervals of a fixed one day duration (24 hours). The properties and methods declared by this class can be used to perform common collection operations such as adding new or deleting existing items. Individual items can be accessed using indexer notation.

The distinctive feature of the functionality implemented by the DayIntervalCollection is that it manipulates a time interval of any arbitrary duration as a list of day intervals rounding the original interval’s start and end times so that they are represented by appropriate day intervals. For instance, when a time interval is about to be added to this collection via the TimeIntervalCollection.Add method, it is automatically divided into a number of day intervals and these intervals are then added as items to the collection (note that a collection of the DayIntervalCollection type doesn’t contain duplicated items - only items that are not represented within the collection are added to it so that the collection represents a combination of time intervals). In the same manner, when removing a particular time interval from the collection, it is represented as a set of day intervals and the corresponding day interval items are removed from the collection.

An instance of the DayIntervalCollection class is referenced by the DayView‘s SchedulerViewBase.VisibleIntervals property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DayIntervalCollection class.


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