Skip to main content

TdxGanttControlTasks Class

A task collection in the Gantt control.

Declaration

TdxGanttControlTasks = class(
    TdxGanttControlModelUIDElementList
)

Remarks

A task is a base planning unit that defines a set of steps required to reach project goals. The TdxGanttControlTasks class implements the task collection functionality for the Gantt control.

Main API Members

The list below outlines key members of the TdxGanttControlTasks class. These members allow you to access and manage tasks.

Task Collection Management

Append | Insert
Create new tasks and add them to the collection.
Count
Returns the number of tasks in the collection.
Delete
Deletes the specified task in the collection.
GetItemByUID
Provides access to a stored task by its unique identifier.
Items
Provides indexed access to stored tasks.
Reset
Deletes all stored tasks except for the root task[1].

General-Purpose API Members

Assign
Copies tasks between task collections.
DataModel
Provides access to the parent data model.
BeginUpdate | EndUpdate | CancelUpdate
Allow you to avoid excessive redraw operations during batch task collection changes.

Direct TdxGanttControlTasks Class Reference

The TdxGanttControlDataModel.Tasks property references a TdxGanttControlTasks object.

Footnotes
  1. The Gantt control always contains a root task, and an attempt to delete it causes an exception.

See Also