Version

TimeRangesCollection Class

Provides a repository for TimeRange instances.
Syntax
'Declaration
 
Public Class TimeRangesCollection 
   Inherits Infragistics.Shared.SubObjectsCollectionBase
public class TimeRangesCollection : Infragistics.Shared.SubObjectsCollectionBase 
Remarks

When a TimeRange is added to this collection, the range is checked against existing instances; if a range is found with which the new range intersects, the two are effectively merged together, resulting in modification of the exsiting instance to include the new range. In this case, the instance passed to the Add method is not added to the collection, and the existing instance is returned.

The contents of this collection are always maintained in chronological order, i.e., when a new instance is added, the collection is sorted by the value of the TimeRange's StartTime property.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also