Project 2000. The Network Diagram View, страница 11

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

Syntax

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

Expression

Optional. An expression that returns an Application object.

Style

Optional Long. A constant that specifies the style of link lines connecting the boxes of the active Network Diagram. Can be one of the following PjLinkStyle constants: pjLinkStraight or pjLinkRectilinear.

ShowArrows

Optional BooleanTrue if the link lines have arrows that show the  direction of the links.

ShowLabels

Optional BooleanTrue if the link lines have labels attached that show the link type.

ColorMode

Optional Long. A constant that specifies the way link line colors are determined. Can be one of the following PjLinkColorMode constants:

pjColorModeCustom 

Link line colors are independent of boxes and are determined by CriticalColor and NoncriticalColor.

pjColorModePredecessor

Link lines are the same color as the border of the predecessor box.

CriticalColor

Optional Long. The color of link lines between critical tasks. The default is pjRed. If ColorType is not pjColorModeCustom, CriticalColor is ignored. Can be one of the following PjColor constants:

  pjColorAutomatic   pjAqua   pjBlack   pjBlue   pjFuschia   pjGray   pjGreen   pjLime   pjMaroon

pjNavy pjOlive pjPurple pjRed pjSilver pjTeal pjYellow pjWhite

NoncriticalColor

Optional Long. The color of link lines between noncritical tasks. The default is pjBlack. If ColorType is not pjColorModeCustom, NoncriticalColor is ignored. Can be one of the PjColor constants.

Remarks

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

LayoutSelectionNow Method

Lays out the selected task boxes in the active Network Diagram view according to its layout options.

Syntax

expression.LayoutSelectionNow

expression

Optional. An expression that returns an Application object.

Remarks

Layout options can be set with the BoxLayout and BoxLinks methods.

The LayoutSelectionNow method is only available when a Network Diagram view is active.

LayoutRelatedNow Method

Lays out all task boxes in the active Network Diagram that are successors or subtasks of the task with the focus.

Syntax

expression.LayoutRelatedNow()

Expression

Optional. An expression that returns an Application object.

Remarks

The LayoutRelatedNow method is only available when a Network Diagram view is active.

BoxGetXPosition Method

Returns the X position of the top-left corner of a task box in the Network Diagram.

Syntax

expression.BoxGetXPosition (TaskID, ProjectName)

Expression

Optional. An expression that returns an Application object.

TaskID

Required Long. The identification number of the task.

ProjectName

Optional String. If the active project is a consolidated project, specifies the name of the project for the identification number specified by TaskID. The default value is the name of the active project.

Remarks

The value returned by BoxGetXPosition is in non-scaleable units which are equivalent to an equal number of pixels at a zoom setting of 100%.

BoxGetYPosition Method

Returns the Y position of the top-left corner of a task box in the Network Diagram.

Syntax

expression.BoxGetYPosition (TaskID, ProjectName)

Expression

Optional. An expression that returns an Application object.

TaskID

Required Long. The identification number of the task.

ProjectName

Optional String. If the active project is a consolidated project, specifies the name of the project for the identification number specified by TaskID. The default value is the name of the active project.

Remarks

The value returned by BoxGetYPosition is in non-scaleable units which are equivalent to an equal number of pixels at a zoom setting of 100%.