Share via


Application.BoxLinks Method

Project Developer Reference

Specifies the appearance of link lines in the active Network Diagram.

Syntax

expression.BoxLinks(Style, ShowArrows, ShowLabels, ColorMode, CriticalColor, NoncriticalColor)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Style Optional Long Specifies the style of link lines. Can be one of the following PjLinkStyle constants: pjLinkStraight or pjLinkRectilinear.
ShowArrows Optional Boolean True if link lines have arrows showing the direction of the link.
ShowLabels Optional Boolean True if link lines have labels showing the link type.
ColorMode Optional Long Specifies how the color of link lines is determined. Can be one of the PjColorLinkMode constants.
CriticalColor Optional Long The color of link lines between critical tasks. If ColorType is pjColorModePredecessor, CriticalColor is ignored. The default value is pjRed. Can be one of the PjColor constants.
NoncriticalColor Optional Long The color of link lines between noncritical tasks. If ColorType is pjColorModePredecessor, NoncriticalColor is ignored. Can be one of the PjColor constants. The default value is pjBlack.

Return Value
Boolean

Remarks

If no arguments are specified, the BoxLinks method has no effect.

Example
The following example first hides and then displays the directional arrow of the links.

Visual Basic for Applications
  Sub BoxLink_Arrow()
'Activate the Network Diagram view
ViewApply Name:="Network Diagram"
 
<strong class="bterm">BoxLinks</strong> ShowArrows:=False
<strong class="bterm">BoxLinks</strong> ShowArrows:=True

End Sub

See Also