Version

TimeRange Class

Represents a range of time that is specific to a particular date.
Syntax
'Declaration
 
Public Class TimeRange 
   Inherits Infragistics.Shared.SubObjectBase
public class TimeRange : Infragistics.Shared.SubObjectBase 
Remarks

The TimeRange class encapsulates a range of time through two simple properties, StartTime and EndTime, both of which are of type TimeSpan. This class makes it possible to define a range of time as a working hour range, or specify an appearance that applies to a given range of time.

The TimeSlot class enacapsulates a range of time as it pertains to the UltraDayView control, with the number of time slots displayed by the control being dependent on the value of the TimeSlotInterval property. The main purpose of the TimeRange class is to simplify syntax when defining a range of working hours or applying an appearance to time slots; rather than creating an object for each TimeSlot to be affected, a TimeRange object can be used to represent multiple TimeSlots with a single object.

The IsInRange method can be used to determine whether a TimeSlot falls within the range defined by this instance.

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