Table of Contents

TTMSFNCGanttTask Class

Represents a single project task, including its schedule, duration, dependencies, subtasks, state, appearance, and application data.

API unit family: TMSFNCGanttClasses Inherits from: TCollectionItem

Syntax

TTMSFNCGanttTask = class(TCollectionItem)

Properties

Name Description
Cost Cost value associated with the task.
DBKey Database key associated with the task when data binding is used.
DataBoolean Application-defined Boolean value associated with the task.
DataInteger Application-defined integer value associated with the task.
DataObject Application-defined object associated with the task.
DataPointer Application-defined pointer associated with the task.
DataString Application-defined string value associated with the task.
Description Longer description of the task.
ElapsedTime Elapsed scheduled time based on duration, progress, and work-time policy.
Hint Hint text displayed for the task.
InternalID Persistent internal identifier used by the web runtime.
IsEventMarker Marks the task as a zero-duration event marker when True.
Locked Prevents interactive or programmatic schedule changes when True.
Name Display name of the task.
OwnerProject Project that owns this task.
ParentTask Parent task that owns this task as a subtask, or nil for a root task.
PlannedDuration Planned duration assigned to the task.
PlannedEnd Planned finish date/time for the task.
PlannedStart Planned start date/time before dependency scheduling adjusts the task.
Progress Progress percentage of the task.
RemainingTime Remaining scheduled time based on duration, progress, and work-time policy.
ScheduledEnd Calculated scheduled end date/time after dependencies and calendar rules are applied.
ScheduledStart Calculated scheduled start date/time after dependencies and calendar rules are applied.
SubTasks Collection of subtasks owned by this task.
Tag Application-defined integer tag value.
TaskAppearance Appearance settings used to render this task bar.
TaskDependencies Dependencies that constrain this task's schedule.
TaskId Application-defined task identifier.
TaskState Visual and priority state assigned to the task.
TaskStateName Name of the task state assigned to this task.
WBS Work breakdown structure path calculated from the task hierarchy.
WBSTaskPart Custom segment used for this task in the work breakdown structure.
WorkTimePolicy Calendar policy used when calculating scheduled start and end times.

Methods

Name Description
AddDependentEventMarker Adds a zero-duration event marker that depends on this task.
AddDependentTask Adds a task that depends on this task.
AddNextEventMarker Adds a zero-duration event marker after this task.
AddNextEventMarkerPrevious Adds a zero-duration event marker after the previous task sequence.
AddNextEventMarkerSameEndDate Adds a zero-duration event marker with the same planned end date as this task.
AddNextEventMarkerSameStartDate Adds a zero-duration event marker with the same planned start date as this task.
AddNextTask Adds a sibling task after this task.
AddNextTaskPrevious Adds a sibling task that starts after the previous task sequence.
AddNextTaskSameEndDate Adds a sibling task with the same planned end date as this task.
AddNextTaskSameStartDate Adds a sibling task with the same planned start date as this task.
AddSubEventMarker Adds a zero-duration event marker as a subtask.
AddSubTask Adds a subtask below this task.
CountSubTasks Returns the number of direct subtasks owned by this task.
GetInternalId Returns the internal persistent identifier used to track this task across operations.
MoveTaskTime Moves the task schedule by the specified time difference.
SetTaskStateByName Assigns the task state whose name matches the specified value.

Events

Name Description
OnGetScheduledEnd Occurs when the task calculates its scheduled end; modify the date/time to override it.
OnGetScheduledStart Occurs when the task calculates its scheduled start; modify the date/time to override it.

Used by