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 Information
Version Added: Visio 2010
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.