Table of Contents

TTMSFNCGanttTimeSpans Class

Collection of working-time intervals used by a project calendar.

API unit family: TMSFNCGanttClasses Inherits from: TTMSFNCOwnedCollection

Syntax

TTMSFNCGanttTimeSpans = class(TTMSFNCOwnedCollection)

Properties

Name Description
DayEndTime Latest end time across configured working intervals.
DayStartTime Earliest start time across configured working intervals.
Items Gets or sets a working-time span by zero-based collection index.

Methods

Name Description
Add Adds a working-time span to the end of the collection.
AddTimeSpan Adds a working-time span with the specified start and end times.
Clear Removes all working-time spans from the collection.
Delete Deletes the working-time span at the specified index.
GetDaySpan Returns the total day span covered by configured working intervals.
Insert Inserts a working-time span at the specified collection index.
IsInWorkingHours Returns whether the specified date/time is inside a configured working interval.