Why does my tree change layout after the first level?
I am trying to create a tree structure of my report. However, the layout changes the way it looks after the first level. Instead of the boxes being next to each other horizontally, they're stacked vertically. I'm not specifying any change to the tree arrangement. It looks like this:
Is there a way to change this and specify that all levels keep the same look and feel? I actually I want it to look like so the second level of shapes are on the same horizontal row. Thanks for any advice.
-
Official comment
When you add a ShapeConnector to your top shape, you specify the style of the arrangement for rest of the tree.
myShapeConnector=myShape.AddShapeConnector(VS.ShapeConnectorTypes,OrgChart);
From the way your diagram appears, it looks like you are using the "OrgChart" ShapeConnectorType. Org charts follow a pattern that minimizes the space occupied by the chart by switching to a vertical arrangement at the second level.
To get the arrangement you want, you'll need to use the "Hierarchy" ShapeConnectorType.
myShapeConnector=myShape.AddShapeConnector(VS.ShapeConnectorTypes,Hierarchy);
This repeats the top level arrangement for all levels.
Comment actions
Please sign in to leave a comment.
Comments
2 comments