ContainerProperties.ResizeAsNeeded property (Visio)

Determines whether the container boundary resizes automatically to fit its contents. Read/write.

Syntax

expression.ResizeAsNeeded

expression An expression that returns a ContainerProperties object.

Return value

VisContainerAutoResize

Remarks

The value of the ResizeAsNeeded property can be one of the following VisContainerAutoResize constants.

Constant Value Description
visContainerAutoResizeNone 0 Do not automatically resize container.
visContainerAutoResizeExpand 1 Automatically expand the container size, but don't contract.
visContainerAutoResizeExpandContract 2 Automatically expand and contract the container size.

The setting of the ResizeAsNeeded property corresponds to the selection in the Automatic Resize drop-down list in the Size group on the Container Tools Format tab.

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.