IGanttItemInfo.AddTaskRelation (String, GanttTaskRelationType, GanttTaskRelationMode, Double) Method

Adds a new task relation (dependency) into this item. The relation is added in the TaskRelations property.
Function AddTaskRelation( _ 
ByVal relatedTaskID As String, _ 
ByVal relationType As GanttTaskRelationType, _ 
ByVal relationMode As GanttTaskRelationMode, _ 
ByVal delayDays As Double
) As IGanttTaskRelation
This language is not supported or no code example is available.
IGanttTaskRelation AddTaskRelation( 
string relatedTaskID
GanttTaskRelationType relationType
GanttTaskRelationMode relationMode
double delayDays 
)
This language is not supported or no code example is available.

Parameters

relatedTaskID
string

The ID of the related Gantt item.

relationType
GanttTaskRelationType

The type of the relation.

relationMode
GanttTaskRelationMode

The mode of the relation.

delayDays
double

The lag or lead time for the dependent task (in days). A positive number means lag time which delays the start time of the successor task. A negative number means lead time where the task overlaps its predecessor.

Return Value

IGanttTaskRelation

The newly added relation.

Version
 
Available since QDV 7.19.478.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition