Table of contents
Collapse the table of content
Expand the table of content

Shape.SetEnd Method (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Moves the endpoint of a one-dimensional (1-D) shape to the coordinates represented by xPos and yPos.


expression . SetEnd( xPos , yPos )

expression A variable that represents a Shape object.


NameRequired/OptionalData TypeDescription
xPosRequiredDoubleThe new x-coordinate of the endpoint.
yPosRequiredDoubleThe new y-coordinate of the endpoint.

Return Value



The SetEnd method applies only to 1-D shapes. If the indicated shape is a 2-D shape, an error is returned.

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).

© 2018 Microsoft