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

Selection.LayoutChangeDirection Method (Visio)

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

Revises the layout of a selection of connected shapes by rotating or flipping the connected shapes as a unit, without rotating or flipping the individual shapes.


expression . LayoutChangeDirection( Direction )

expression A variable that represents a Selection object.


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

Return Value



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

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


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

Public Sub SelectionLayoutChangeDirection_Example()
  Dim vsoSelection As Visio.Selection 
  Set vsoSelection = ActiveWindow.Selection 
  vsoSelection.LayoutChangeDirection (visLayoutDirFlipVert) 
End Sub
© 2018 Microsoft