Shape.Resize method (Visio)

Resizes the shape by moving shape handles as specified.

Syntax

expression.Resize (Direction, Distance, UnitCode)

expression A variable that represents a Shape object.

Parameters

Name Required/Optional Data type Description
Direction Required VisResizeDirection The direction that corresponds to the shape handle. See Remarks for possible values.
Distance Required Double The distance to move the shape edge or corner; positive values move outward and negative values move inward.
UnitCode Required VisUnitCodes The units of measure to use for the resize distance.

Return value

Nothing

Remarks

Direction must be one of the following VisResizeDirection constants.

Constant Value Description
visResizeDirE 0 Right, middle shape handle.
visResizeDirNE 1 Right, top shape handle.
visResizeDirN 2 Center, top shape handle.
visResizeDirNW 3 Left, top shape handle.
visResizeDirW 4 Left, middle shape handle.
visResizeDirSW 5 Left, bottom shape handle.
visResizeDirS 6 Center, bottom shape handle.
visResizeDirSE 7 Right, 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.)

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.