Share via


SetCenter Method [Visio 2003 SDK Documentation]

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

object**.SetCenter**xPos, yPos

object     Required. An expression that returns a Shape object.

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

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

Version added

2.0

Remarks

The coordinates represented by the xPos and yPos 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. The net effect is to move the shape with respect to its parent shape (or the page).

Applies to | Shape object

See Also | SetBegin method | SetEnd method