ContainerProperties.ListAlignment property (Visio)

Specifies how to align and arrange a list shape that you want positioned perpendicular to the main list direction. Read/write.

Syntax

expression.ListAlignment

expression An expression that returns a ContainerProperties object.

Return value

VisListAlignment

Remarks

Use the ListAlignment property to position shapes along the axis that is perpendicular to the primary list direction. For example, if the primary list direction is horizontal in a given list container, you can use the ListAlignment property to align a shape vertically in that container. The value of the ListAlignment property can be one of the following VisListAlignment constants.

Constant Value Description
visListAlignLeftOrTop 0 Left-align or top-align shapes.
visListDirCenterOrMiddle 1 Center-align or middle-align shapes.
visListDirRightOrBottom 2 Right-align or bottom-align shapes.

If the container is not a list, Microsoft Visio returns an Invalid Source error.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.