Back to Devexpress

Task Link in the Gantt View

aspnet-15835-components-chart-control-visual-elements-task-link-in-the-gantt-view.md

latest2.5 KB
Original Source

Task Link in the Gantt View

  • Dec 17, 2020

A Gantt Diagram can display dependency relationships between activities (i.e., task relations). These relations are implemented as instances of the TaskLink class.

A task link is a relation between a parent point and child points. The dependency type is defined by the TaskLinkType enumeration member and can be specified by the TaskLink.LinkType property. These types are: Finish to Start (the most common), Finish to Finish , Start to Finish and Start to Start. Their appearance in a chart specifies the order in which tasks should begin and end.

The task link is displayed as a line that connects the terminal points of task bars, with an arrowhead pointed at a bar (the “parent bar”).

The TaskLinkOptions object specifies drawing parameters ( Color , Thickness , ArrowHeight and ArrowWidth ), the minimum distance between the line and bars it connects ( MinIndent ), and line visibility ( Visible ).

The table below lists the main properties that affect the element’s appearance and functionality:

|

Link Type

|

TaskLink.LinkType

| |

Color

|

TaskLinkOptions.Color, TaskLinkOptions.ColorSource

| |

Line Thickness

|

TaskLinkOptions.Thickness

| |

Arrowhead Length

|

TaskLinkOptions.ArrowHeight

| |

Arrowhead Width

|

TaskLinkOptions.ArrowWidth

| |

Line Indentation

|

TaskLinkOptions.MinIndent

| |

Visibility

|

TaskLinkOptions.Visible

|

See Also

How to: Create a Gantt Chart with Task Links