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.
Syntax
expression.FitToContents
expression A variable that represents a ContainerProperties object.
Return value
Nothing
Remarks
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.
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.