Share via


Shape.Resize Method (Visio)

Resizes the shape by moving shape handles as specified.

Version Information

Version Added: Visio 2010

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