Layout method

Microsoft Visio Developer Reference

Layout method

See also   Example   

Lays out the shapes and/or reroutes the connectors for the page, master, group, or selection.

Version added

4.5

Syntax

object.Layout

object

Required. An expression that returns a Page, Master, Shape or Selection object whose shapes are to be repositioned.

Remarks

Using the Layout method is equivalent to clicking Lay Out Shapes on the Shape menu.

Behavior of the Layout method can be influenced by setting the formulas or results of cells in the Page Layout and Shape Layout sections of the page, master, or group to be laid out. You can infer how these cells influence the behavior of the Layout method by examining the effect of various Lay Out Shapes dialog box options on the values of these cells.

To lay out a subset of the shapes of a page, master, or group, establish a Selection object in which the shapes to be laid out are selected, then invoke the Layout method. If the Layout method is performed on a Selection object and the object has no shapes selected, all shapes in the page, master, or group of the selection are laid out.