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.
Version Added: Visio 2010
expression A variable that represents a ContainerProperties object.
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.