Application.BoxStylesEdit Method

Project Developer Reference

Sets the style of boxes on the Network Diagram.

Syntax

expression.BoxStylesEdit(Style, DataTemplate, HorizontalGridlines, VerticalGridlines, BorderShape, BorderColor, BorderWidth, BackgroundColor, BackgroundPattern)

expression   A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
Style Required Long The box style to change. Can be one of the PjBoxStyle constants.
DataTemplate Optional String The name of the data template to use for the style.
HorizontalGridlines Optional Boolean True if horizontal gridlines separate each row in the box.
VerticalGridlines Optional Boolean True if vertical gridlines separate each row in the box.
BorderShape Optional Long The shape of the box border. Can be one of the PjBoxShape constants.
BorderColor Optional Long The color of the box border. Can be one of the PjColor constants.
BorderWidth Optional Long A value from 1 through 4 that specifies the width of the box border, in pixels.
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 PjBackgroundPattern constants.

Return Value
Boolean

Remarks

To display the Box Styles dialog box, use the BarBoxStyles method.

Example

The following example changes the boxes with pjBoxCritical style to be displayed with pointed ends and then as rounded rectangles.

Visual Basic for Applications
  Sub BoxStyles_Edit()
'Activate the Network Diagram view  
ViewApply Name:="Network Diagram"


<strong class="bterm">BoxStylesEdit</strong> Style:=pjBoxCritical, BorderShape:=pjBoxPointedEnds
<strong class="bterm">BoxStylesEdit</strong> Style:=pjBoxCritical, BorderShape:=pjBoxRoundedRectangle

End Sub

See Also