Selection.SwapEnds Method (Visio)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Swaps the begin and endpoints of a one-dimensional (1-D) shape.

expression .SwapEnds

expression A variable that represents a Selection object.

Return Value


The type of glue associated with the endpoints is also swapped. For example, if the begin point of a 1-D shape is glued to object A and the endpoint of the 1-D shape is not glued, after invoking the SwapEnds method, the endpoint is glued to object A and the begin point is not glued.