ContainerProperties.ContainerStyle property (Visio)

Determines the visual appearance of the container. Read/write.

Syntax

expression.ContainerStyle

expression An expression that returns a ContainerProperties object.

Return value

Integer

Remarks

The value of the ContainerStyle property corresponds to the numerical identifier (ID) of the container style that is selected in the Container Styles gallery on the Container Tools Format tab.

The value of the ContainerStyle should always be greater than zero.

If no value is assigned to the ContainerStyle property or it is set to a null value, a run-time error ensues. A run-time error also ensues if you assign the property a value that is less than 1 or greater than the maximum ID number in the Container Styles gallery.

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.