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

Shape.Resize Method (Visio)

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

Resizes the shape by moving shape handles as specified.

Syntax

expression . Resize( Direction , Distance , UnitCode )

expression A variable that represents a Shape object.

Parameters

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

Return Value

Nothing

Remarks

Direction must be one of the following VisResizeDirection constants.

ConstantValueDescription
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 shape 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.)

© 2017 Microsoft