Expand Minimize
This topic has not yet been rated - Rate this topic

SetCenter method

Office XP

SetCenter method

http://msdn.microsoft.com/en-us/library/aa188693(v=office.10) See also         Example         http://msdn.microsoft.com/en-us/library/aa164278(v=office.10) Applies to

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 (http://msdn.microsoft.com/en-us/library/aa157244(v=office.10) PinX).

y

Required Double. The new y-coordinate of the center of rotation (http://msdn.microsoft.com/en-us/library/aa157250(v=office.10) 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.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.