Shape.SetEnd method (Visio)

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

Syntax

expression. SetEnd( _xPos_ , _yPos_ )

expression A variable that represents a Shape object.

Parameters

Name Required/Optional Data type Description
xPos Required Double The new x-coordinate of the endpoint.
yPos Required Double The new y-coordinate of the endpoint.

Return value

Nothing

Remarks

The SetEnd method applies only to 1D shapes. If the indicated shape is a 2D 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).

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.