VisHorizontalAlignTypes Constants

Visio Automation Reference

Horizontal alignment type values to pass to the Selection.Align method.

Remarks

These setttings correspond to those available in the Align Shapes dialog box (on the Shape menu, click Align Shapes).

Constant Value Description

visHorzAlignCenter

2

Align to the center of the primary selected shape.

visHorzAlignLeft

1

Align to the left of the primary selected shape.

visHorzAlignNone

0

No horizontal alignment.

visHorzAlignRight

3

Align to the right of the primary selected shape.