Table of contents
Collapse the table of content
Expand the table of content

Page.LayoutChangeDirection Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Revises the layout of a set of connected shapes on the page, by rotating or flipping a connected diagram without rotating or flipping the individual shapes.


expression . LayoutChangeDirection( Direction )

expression A variable that represents a Page object.


NameRequired/OptionalData TypeDescription
DirectionRequiredVisLayoutDirectionThe action to take. See Remarks for possible values.

Return Value



The Direction parameter must be one of the following VisLayoutDirection constants.

visLayoutDirRotateRight0Rotates the diagram 90 degrees clockwise.
visLayoutDirRotateLeft1Rotates the diagram 90 degrees counterclockwise.
visLayoutDirFlipVert2Flips the diagram vertically.
visLayoutDirFlipHorz3Flips the diagram horizontally.


The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the LayoutChangeDirection method to flip connected shapes on the active page vertically, without flipping the individual shapes.

Public Sub PageLayoutChangeDirection_Example()
   ActivePage.LayoutChangeDirection (visLayoutDirFlipVert)
End Sub
© 2018 Microsoft