ShapeRange.RerouteConnections Method
Publisher Developer Reference |
Reroutes connectors so that they take the shortest possible path between the shapes they connect. To do this, the RerouteConnections method may detach the ends of a connector and reattach them to different connecting sites on the connected shapes.
Syntax
expression.RerouteConnections
expression A variable that represents a ShapeRange object.
Return Value
Nothing
Remarks
This method reroutes all connectors attached to the specified shape; if the specified shape is a connector, it is rerouted.
Example
This example adds two rectangles to the first page in the active publication and connects them with a curved connector. Note that the RerouteConnections method overrides the values you supply for the ConnectionSite arguments used with the BeginConnect and EndConnect methods.
Visual Basic for Applications |
---|
|
See Also