Selection.Resize method (Visio)

Resizes the selection by moving shape handles as specified.

Syntax

expression.Resize (Direction, Distance, UnitCode)

expression A variable that represents a Selection 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 selection edge or corner, where positive values move outward, and negative values move inward.
UnitCode Required VisUnitCodes The unit of measure for the resize distance.

Return value

Nothing

Remarks

The Direction parameter 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 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).

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.