Skip to main content
A newer version of this page is available. .

WeekIntervalCollection Class

A collection that contains time intervals of a fixed one week duration.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.2.Core.dll

NuGet Packages: DevExpress.Scheduler.Core, DevExpress.WindowsDesktop.Scheduler.Core

Declaration

public class WeekIntervalCollection :
    FixedDurationIntervalCollection

Remarks

The WeekIntervalCollection class represents a collection that contains time intervals that are of a fixed one week duration (7 days). 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 WeekIntervalCollection is that it manipulates a time interval of any arbitrary duration as a list of week intervals rounding the original interval’s start and end times so that they get represented by appropriate week 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 week intervals and these intervals are then added as items to the collection (note that a collection of the WeekIntervalCollection 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 week intervals and the corresponding week interval items are removed from the collection.

An instance of the WeekIntervalCollection class is referenced by the WeekView‘s SchedulerViewBase.VisibleIntervals property.

Inheritance

Object
DXCollectionBase<TimeInterval>
DXCollection<TimeInterval>
NotificationCollection<TimeInterval>
DevExpress.XtraScheduler.SchedulerCollectionBase<TimeInterval>
TimeIntervalCollection
DevExpress.XtraScheduler.DiscreteIntervalCollection
FixedDurationIntervalCollection
WeekIntervalCollection
See Also