Skip to main content

TdxGanttControlResource Class

A project resource in the Gantt control.

Declaration

TdxGanttControlResource = class(
    TdxGanttControlModelUIDElement
)

Remarks

A task in a project requires resources (man hours, equipment, financial costs, etc.) to accomplish the task. The TdxGanttControlResource class implements a project resource.

Main API Members

The list below outlines key members of the TdxGanttControlResource class. These members allow you to configure project resources.

Baselines
Allows you to configure resource baselines.
Blank
Specifies if the resource is a blank separator for other resources.
BudgetedCostOfWorkPerformed | BudgetedCostOfWorkScheduled | Cost
Specify the resource’s costs in the project.
CalendarUID
Allows you to associate the resource with a resource calendar.
ExtendedAttributes
Provides access to resource-related data.
Group
Allows you to group resources.
ID
Specifies the resource’s index in the parent collection.
Name | Type
Specify the resource’s name and type.

Code Example

The following code example creates and associates a project resource, an assignment, and a task:

var
  AResource: TdxGanttControlResource;
  AAssignment: TdxGanttControlAssignment;
  ATask: TdxGanttControlTask;
begin
  AResource := dxGanttControl1.DataModel.Resources.Append;
  ATask := dxGanttControl1.DataModel.Tasks.Append;
  AAssignment := dxGanttControl1.DataModel.Assignments.Append as TdxGanttControlAssignment;
  AAssignment.TaskUID := ATask.UID;
  AAssignment.ResourceUID := AResource.UID;
end;

Direct TdxGanttControlResource Class Reference

The TdxGanttControlDataModel.Resources property references a TdxGanttControlResource object.

See Also