UpdateAlignmentBox method

Microsoft Visio Developer Reference

UpdateAlignmentBox method

See also   Example   

Updates the alignment box for a shape.

Version added

2000

Syntax

objRet = object.UpdateAlignmentBox

objRet

Required. An expression that returns a Shape object with a new width and height.

object

Required. An expression that returns a Shape object.

Remarks

The UpdateAlignmentBox method alters the width and height of a shape, often a group. For example, after moving a shape in a group the shape may be outside the group's alignment box. The UpdateAlignmentBox method updates the alignment box so it encloses all the shapes in the group.

Note Many shapes are designed so that their alignment boxes don't coincide with their geometric extents. Using the UpdateAlignmentBox method on such shapes defeats the intentions of the shape designer.