Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Shape.AddToContainers Method (Visio)

Adds the shape to all underlying containers that allow it as a member.

Version Added: Visio 2010

expression .AddToContainers

expression A variable that represents a Shape object.

Return Value


When you call the AddToContainers method, Microsoft Visio uses the setting of the ContainerProperties.ResizeAsNeeded property for each container to determine how the container resizes.

If the underlying container is a list, the shape is added as a normal container member, and not as a list member.

The AddToContainers method works only if the shape sits at least partially on top of a container that does not already contain it.

© 2015 Microsoft