# GrapeCity.Spreadsheet.Drawing.IFreeFormBuilder.AddNodes

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IFreeFormBuilder_AddNodes_" data-uid="GrapeCity.Spreadsheet.Drawing.IFreeFormBuilder.AddNodes*">AddNodes Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IFreeFormBuilder_AddNodes_" data-uid="GrapeCity.Spreadsheet.Drawing.IFreeFormBuilder.AddNodes*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IFreeFormBuilder_AddNodes_GrapeCity_Spreadsheet_Drawing_SegmentType_GrapeCity_Spreadsheet_Drawing_EditingType_System_Double_System_Double_System_Double_System_Double_System_Double_System_Double_" data-uid="GrapeCity.Spreadsheet.Drawing.IFreeFormBuilder.AddNodes(GrapeCity.Spreadsheet.Drawing.SegmentType,GrapeCity.Spreadsheet.Drawing.EditingType,System.Double,System.Double,System.Double,System.Double,System.Double,System.Double)">AddNodes(SegmentType, EditingType, double, double, double, double, double, double)</h4>
<div class="markdown level1 summary"><p>Adds a point in the current shape, and then draws a line from the current node to the last node that was added.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IFreeFormBuilder AddNodes(SegmentType segmentType, EditingType editingType, double x1, double y1, double x2 = NaN, double y2 = NaN, double x3 = NaN, double y3 = NaN)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function AddNodes(segmentType As SegmentType, editingType As EditingType, x1 As Double, y1 As Double, Optional x2 As Double = NaN, Optional y2 As Double = NaN, Optional x3 As Double = NaN, Optional y3 As Double = NaN) As IFreeFormBuilder</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.SegmentType.html">SegmentType</a></td>
      <td><span class="parametername">segmentType</span></td>
      <td><p>The type of segment to be added.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html">EditingType</a></td>
      <td><span class="parametername">editingType</span></td>
      <td><p>The editing property of the vertex.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x1</span></td>
      <td><p>If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Auto">Auto</a>, this argument specifies the horizontal distance, in pixcels, from the upper-left corner of the document to the end point of the new segment.<br>
If the <code class="paramref">editingType</code> of the new node is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Corner">Corner</a>, this argument specifies the horizontal distance, in pixcels, from the upper-left corner of the document to the first control point for the new segment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y1</span></td>
      <td><p>If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Auto">Auto</a>, this argument specifies the vertical distance, in pixcels, from the upper-left corner of the document to the end point of the new segment.<br>
If the <code class="paramref">editingType</code> of the new node is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Corner">Corner</a>, this argument specifies the vertical distance, in pixcels, from the upper-left corner of the document to the first control point for the new segment.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x2</span></td>
      <td><p>If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Corner">Corner</a>, this argument specifies the horizontal distance, in pixcels, from the upper-left corner of the document to the second control point of the new segment.<br>
If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Auto">Auto</a>, don't specify a value for this argument.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y2</span></td>
      <td><p>If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Corner">Corner</a>, this argument specifies the vertical distance, in pixcels, from the upper-left corner of the document to the second control point of the new segment.<br>
If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Auto">Auto</a>, don't specify a value for this argument.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x3</span></td>
      <td><p>If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Corner">Corner</a>, this argument specifies the horizontal distance, in pixcels, from the upper-left corner of the document to the second control point of the new segment.<br>
If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Auto">Auto</a>, don't specify a value for this argument.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y3</span></td>
      <td><p>If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Corner">Corner</a>, this argument specifies the vertical distance, in pixcels, from the upper-left corner of the document to the second control point of the new segment.<br>
If the <code class="paramref">editingType</code> of the new segment is <a class="xref" href="GrapeCity.Spreadsheet.Drawing.EditingType.html#GrapeCity_Spreadsheet_Drawing_EditingType_Auto">Auto</a>, don't specify a value for this argument.</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.IFreeFormBuilder.html">IFreeFormBuilder</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IFreeFormBuilder.html">IFreeFormBuilder</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
