Selection.Resize Method (Visio)
Resizes the selection by moving shape handles as specified.
Version Information
Version Added: Visio 2010
Syntax
expression .Resize(Direction, Distance, UnitCode)
expression A variable that represents a Selection object.
Parameters
Name |
Required/Optional |
Data Type |
Description |
---|---|---|---|
Direction |
Required |
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 |
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).