Shape.RerouteConnections MethodÂ
Reroutes connectors so that they take the shortest possible path between the shapes they connect.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)
Usage
Dim shape1 As Shape
shape1.RerouteConnections()
Syntax
Sub RerouteConnections()
void RerouteConnections();
public: Void RerouteConnections();
public void RerouteConnections();
function 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.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
Shape Interface
Microsoft.Office.Interop.Excel Namespace