ContainerProperties.FitToContents method (Visio)
Forces the container to resize so as to tightly include all member shapes, including any applicable margins between the container and the shapes.
expression.FitToContents
expression A variable that represents a ContainerProperties object.
Nothing
Calling the FitToContents method has no effect on the ResizeAsNeeded property setting for the current session of Microsoft Visio.
The FitToContents method does not work for list shapes.
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.