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

expression

Optional. An expression that returns an Application object.

ProjectName

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

TaskID

Optional Long. The identification number of the task represented by the box to be changed. The default is to change the boxes of the selected tasks.

BoxDataTemplate

Optional String. The name of the data template.

HorizontalGridlines

Optional Boolean. True if horizontal gridlines separate each row in the box.

VerticalGridlines

Optional Boolean. True if vertical gridlines separate each cell in the box.

BorderShape

Optional Long. The shape of the box border. Can be one of the following PjBoxShape constants:

PjBoxRectangle pjBoxWideRectangle pjBoxRoundedRectangle pjBoxWideRoundedRectangle pjBoxPointedEnds

pjBoxRightParallelogram pjBoxLeftParallelogram pjBoxCapsule pjBoxUpTrapezoid pjBoxDownTrapezoid

BorderColor

Optional Long. The color of the box border. 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


BorderWidth

Optional Long. The width of the box border. Can be one of the following PjBoxBorderWidth constants:

PjBorderWidth1 pjBorderWidth2

pjBorderWidth3 pjBorderWidth4

BackgroundColor

Optional Long. The color of the box background. Can be one of the PjColor constants.

BackgroundPattern

Optional Long. The pattern for the background. Can be one of the following PjFillPattern constants:

PjBackgroundHollow pjBackgroundSolidFill pjBackgroundLightFill pjBackgroundMediumFill pjBackgroundDarkFill pjBackgroundDiagonalLeft pjBackgroundDiagonalRight

pjBackgroundDarkDiagonalLeft pjBackgroundDarkDiagonalRight pjBackgroundThinVerticalStripe pjBackgroundMediumVerticalStripe pjBackgroundLightDither pjBackgroundMediumDither pjBackgroundDarkDither

Reset

Optional Boolean. True if the box formatting is reset to the default formatting of the style in the Box Styles dialog box. If Reset is True, all other arguments except ProjectName and TaskID are ignored.

Remarks

If the TaskID argument is used to specify a box to format, the task cannot be hidden due to application of a filter or a collapse of the outline structure.

If no arguments are specified, the BoxFormat method displays the Format Box dialog box for the selected tasks (if no tasks are selected, the BoxFormat method has no effect).

Use the BoxFormat method to change the formatting of boxes from their default styles. To define the default styles, use the BoxStylesEdit method.

BoxDataTemplate Method

Creates, copies, renames, or deletes a Network Diagram box template.

Syntax

expression.BoxDataTemplate (Name, Action, NewName, Overwrite)