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

Selection.Resize Method (Visio)

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

Resizes the selection by moving shape handles as specified.


expression . Resize( Direction , Distance , UnitCode )

expression A variable that represents a Selection object.


NameRequired/OptionalData TypeDescription
DirectionRequiredVisResizeDirectionThe direction that corresponds to the shape handle. See Remarks for possible values.
DistanceRequiredDoubleThe distance to move the selection edge or corner, where positive values move outward, and negative values move inward.
UnitCodeRequiredVisUnitCodesThe unit of measure for the resize distance.

Return Value



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

visResizeDirE0Right, middle shape handle.
visResizeDirNE1Right, top shape handle.
visResizeDirN2Center, top shape handle.
visResizeDirNW3Left, top shape handle.
visResizeDirW4Left, middle shape handle.
visResizeDirSW5Left, bottom shape handle.
visResizeDirS6Center, bottom shape handle.
visResizeDirSE7Right, bottom shape handle.

When you resize a selection in a diagonal direction (that is, NE, NW, SE, or SW), the specified distance is applied along both the horizontal and vertical axes (as opposed to along the compass direction).

© 2018 Microsoft