TdxGanttControlTaskBaseline.Duration Property
Specifies the baseline’s duration, in ISO 8601 format.
Declaration
property Duration: TDuration read; write;
Property Value
Type | Description |
---|---|
TDuration | A baseline’s duration specified as a string. |
Remarks
Use this property to specify the duration of a task‘s baseline as follows: PT(N)H(N)M(N)S.
A baseline’s duration is calculated as the difference between its start and finish dates. The duration defines the baseline bar’s length in the chart.
Note
The baseline bar’s length is updated every time a user changes the duration or its measurement units.
Specify Baseline Duration
The table below describes all characters required to specify the baseline’s duration:
Value | Description | Example |
---|---|---|
P | Period and time designation. You should use this construction to denote task duration; otherwise, the control throws an exception. | ‘PT8H22M6S’ – eight hours, twenty-two minutes, and six seconds. |
T | ||
N | An integer value. | |
H | Hours, minutes, and seconds. Tip To omit a time unit, specify 0 before it. | |
M | ||
S |
Implementation Details
The control ignores the baseline’s Duration property value until you do any of the following:
Specify the property value explicitly
Assign the duration to the task associated with the baseline and then call the AssignCurrentValues procedure
Note
You should call the baseline’s AssignCurrentValues procedure every time you change the associated task’s settings. Otherwise, the baseline settings are not updated.