Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxGanttControlTasks Class

A task collection in the Gantt control.

#Declaration

Delphi
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