# GrapeCity.Spreadsheet.Drawing.IShapes.AddConnector

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapes_AddConnector_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddConnector*">AddConnector Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapes_AddConnector_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddConnector*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapes_AddConnector_GrapeCity_Spreadsheet_Drawing_ConnectorType_System_Double_System_Double_System_Double_System_Double_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddConnector(GrapeCity.Spreadsheet.Drawing.ConnectorType,System.Double,System.Double,System.Double,System.Double)">AddConnector(ConnectorType, double, double, double, double)</h4>
<div class="markdown level1 summary"><p>Creates a connector.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IShape AddConnector(ConnectorType type, double beginX, double beginY, double endX, double endY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function AddConnector(type As ConnectorType, beginX As Double, beginY As Double, endX As Double, endY As Double) As IShape</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Drawing.ConnectorType.html">ConnectorType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>The connector type to add.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">beginX</span></td>
      <td><p>The horizontal position (in pixels) of the connector's starting point relative to the upper-left corner of the document.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">beginY</span></td>
      <td><p>The vertical position (in pixels) of the connector's starting point relative to the upper-left corner of the document.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">endX</span></td>
      <td><p>The horizontal position (in pixels) of the connector's end point relative to the upper-left corner of the document.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">endY</span></td>
      <td><p>The vertical position (in pixels) of the connector's end point relative to the upper-left corner of the document.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a></td>
      <td><p>The new connector in a worksheet.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IShapes_AddConnector_GrapeCity_Spreadsheet_Drawing_ConnectorType_System_Double_System_Double_System_Double_System_Double__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>When a connector is added, it's not connected to anything.
Use the BeginConnect and EndConnect methods to attach the beginning and end of a connector to other shapes in the document.</p>
</div>
</div>
