SetCenter method

Microsoft Visio Developer Reference

SetCenter method

   Example   

Moves a shape so that its pin is positioned at the coordinates represented by x and y.

Version added

2.0

Syntax

object.SetCenter x, y

object

Required. An expression that returns a Shape object.

x

Required Double. The new x-coordinate of the center of rotation (PinX).

y

Required Double. The new y-coordinate of the center of rotation (PinY).

Remarks

The coordinates represented by the x and y arguments are parent coordinates, measured from the origin of the shape's parent (the page or group that contains the shape).

The SetCenter method only moves the point, in parent coordinates, about which the shape rotates. It does not change the point, in local coordinates, about which the shape rotates.