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

BoxAlign Method

Aligns the left sides, centers, right sides, top edges, middles, or bottom edges of all selected boxes in the currently active Network Diagram with the corresponding side of the box with the focus.

Syntax

expression.BoxAlign (Alignment)

expression

Optional. An expression that returns an Application object.

Alignment

Required Long. A constant that specifies how to align all of the selected boxes with the box with the focus. Can be one of the following PjAlign constants:

PjAlignLefts pjAlignCenters pjAlignRights

pjAlignTops pjAlignMiddles pjAlignBottoms

Remarks

If only one box is selected, the BoxAlign method has no effect.

BoxLinkStyleToggle Method

Toggles the box link style between rectilinear links and straight links for the active Network Diagram.

Syntax

expression.BoxLinkStyleToggle (StraightLinks)

expression

Optional. An expression that returns an Application object.

StraightLinks

Optional Boolean. True if straight link lines are displayed. False if rectilinear link lines are displayed. The default is to toggle the current setting.

BoxProgressMarksShow Method

Shows or hides progress marks in the active Network Diagram.

Syntax

expression.BoxProgressMarksShow (Show)

expression

Optional. An expression that returns an Application object.

Show

Optional Boolean. True if progress marks are displayed in the active view. The default value is True if progress marks are hidden and False if they are visible.

BoxLinkLabelsShow Method

Shows or hides link labels in the active Network Diagram.

Syntax

expression.BoxLinkLabelsShow (Show)

Expression

Optional. An expression that returns an Application object.

Show

Optional Boolean. True if link labels are displayed in the active view. The default value is True if link labels are hidden and False if they are visible.

SummaryTasksShow Method

Shows or hides summary tasks in the active Network Diagram.

Syntax

expression.SummaryTasksShow (Show)

Expression

Optional. An expression that returns an Application object.

Show

Optional Boolean. True if summary tasks are displayed in the active view. The default value is True if summary tasks are hidden and False if they are visible.

Remarks

SummaryTasksShow is available in a Network Diagram, Gantt, or Usage view.


Existing PERT Methods

Because the Network Diagram includes many different features than the PERT Chart in Microsoft Project 98, many of the old methods used in Microsoft Project 98 simply won’t work in Microsoft Project 2000. Below is a detailed table of different methods related to the PERT chart from 98 and how they have been modified in Microsoft Project 2000.

Microsoft Project 98 Method

Microsoft Project 2000 Changes

Layout

No change. Displays the Layout dialog box.

LayoutNow

No change. Lays out the active view based on its current layout settings.

PERTBorders

Hidden and ignored, along with the PjPERTField and PjPERTBoxStyle constants.

PERTBoxStyles

Hidden and ignored, along with the PjPERTBoxSize constants.

PERTLayout

Hidden and ignored.

PERTSetTask

Renamed to BoxSet. Similar support as before, with some changes and additional arguments. See description below.

PERTShowHideFields

Renamed to BoxShowHideFields. Sets or clears the Display small boxes with ID only checkbox in the Layout dialog. The result is the same as using PERTShowHideFields in Microsoft Project 98, but in  Microsoft Project 98 the method set (or unset) the Size control in the Box Styles dialog to ID only, since that's how this functionality was controlled.

ZoomPERT

Renamed to BoxZoom. Zooms in on or out from the Network Diagram.

PageBreaksShow

No Change. Shows or hides page breaks on the Network Diagram.