Selection.RemoveFromContainers Method (Visio)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Removes the selection of shapes from all lists and containers of which the selection is a member.

expression .RemoveFromContainers

expression A variable that represents a Selection object.

Return Value


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