Application.GanttBarLinks Method

Project Developer Reference

Shows or hides task links on the Gantt Chart.

Syntax

expression.GanttBarLinks(Display)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Display Optional Long Where links will be drawn from the ends of predecessor links. Can be one of the PjGanttBarLink constants. The default value is PjNoGanttBarLinks.

Return Value
Boolean

Example
The following example first clears the links and then displays them from the end of one task bar to the top of the next task bar.

Visual Basic for Applications
  Sub GanttBar_Links()
'First clear links, than links from end to top of the next bar
    'Activate Gantt Chart view
    ViewApply Name:="&Gantt Chart"
    GanttBarLinks pjNoGanttBarLinks
    GanttBarLinks pjToTop
End Sub

See Also