Shape.RerouteConnections Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reroutes connectors so that they take the shortest possible path between the shapes they connect.
public:
void RerouteConnections();
public void RerouteConnections ();
Public Sub RerouteConnections ()
Remarks
To use the shortest path, the RerouteConnections method may detach the ends of a connector and reattach them to different connecting sites on the connected shapes. This method reroutes all connectors attached to the specified shape; if the specified shape is a connector, it’s rerouted.
If this method is applied to a connector, only that connector will be rerouted. If this method is applied to a connected shape, all connectors to that shape will be rerouted.