# GrapeCity.Spreadsheet.Drawing.IShapeBase.RerouteConnections

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_RerouteConnections_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.RerouteConnections*">RerouteConnections Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapeBase_RerouteConnections_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.RerouteConnections*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_RerouteConnections" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.RerouteConnections">RerouteConnections()</h4>
<div class="markdown level1 summary"><p>Reroutes all connectors attached to the specified shape; if the specified shape is a connector, it's rerouted.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void RerouteConnections()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub RerouteConnections()</code></pre>
</div>
<h5 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_RerouteConnections_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Reroutes connectors so that they take the shortest possible path between the shapes they connect.
To do this, the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeBase.RerouteConnections.html#GrapeCity_Spreadsheet_Drawing_IShapeBase_RerouteConnections">RerouteConnections()</a> method may detach the ends of a connector and reattach them to different connecting sites on the connected shapes.
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.</p>
</div>
</div>
