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

TimeIntervalCollectionEx Class

Represents an advanced collection of time intervals.

Namespace: DevExpress.XtraScheduler

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

Declaration

public class TimeIntervalCollectionEx :
    TimeIntervalCollection

The following members accept/return TimeIntervalCollectionEx objects:

Remarks

The TimeIntervalCollectionEx represents a collection of TimeInterval objects. 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 TimeIntervalCollectionEx class provides advanced functionality compared with its immediate ancestor TimeIntervalCollection. When adding a new time interval, this collection allows intersecting time intervals to be joined and represented within the collection as a single time interval item. So, the collection always contains a minimal number of items. In the same manner, removing a time interval intersecting an existing time interval item results in the item being cut off, or divided into two items.

The following pictures illustrate how time intervals are added to the TimeIntervalCollectionEx and removed from it.

 

Add method. The original interval is merged with the one specified, resulting in one collection item.

TimeIntervalEx_Add

 

Remove method. The specified interval is subtracted form the original, resulting in two separate intervals, so that two collection items appear.

TimeIntervalEx_Remove

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

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.

Inheritance

See Also