TTMSFNCGanttDuration Class
Represents a duration expressed as a value together with its unit, and converts that duration to an absolute time span.
API unit family: TMSFNCGanttClasses
Inherits from: TPersistent
Syntax
TTMSFNCGanttDuration = class(TPersistent)
Properties
| Name | Description |
|---|---|
| DurationType | Unit used to interpret the duration value. |
| Tag | Application-defined integer tag value. |
| Value | Numeric duration value expressed in DurationType units. |
Methods
| Name | Description |
|---|---|
| AsTime | Converts the duration to a date/time interval. |
| SetDuration | Sets the duration unit and value in one operation. |
| Subtract | Sets the duration to the difference between two date/time values. |
| ToString | Returns the duration as a display string. |