# GrapeCity.Documents.Imaging.PathBuilder.AddLine

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_PathBuilder_AddLine_" data-uid="GrapeCity.Documents.Imaging.PathBuilder.AddLine*">AddLine Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_PathBuilder_AddLine_" data-uid="GrapeCity.Documents.Imaging.PathBuilder.AddLine*"></a>
<h4 id="GrapeCity_Documents_Imaging_PathBuilder_AddLine_System_Drawing_PointF_" data-uid="GrapeCity.Documents.Imaging.PathBuilder.AddLine(System.Drawing.PointF)">AddLine(PointF)</h4>
<div class="markdown level1 summary"><p>Creates a line segment between the current point and the specified end point and adds it to the figure.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddLine(PointF endPoint)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddLine(endPoint As PointF)</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="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">endPoint</span></td>
      <td><p>The end point of the line to draw.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_PathBuilder_AddLine_" data-uid="GrapeCity.Documents.Imaging.PathBuilder.AddLine*"></a>
<h4 id="GrapeCity_Documents_Imaging_PathBuilder_AddLine_System_Single_System_Single_" data-uid="GrapeCity.Documents.Imaging.PathBuilder.AddLine(System.Single,System.Single)">AddLine(float, float)</h4>
<div class="markdown level1 summary"><p>Creates a line segment between the current point and the specified end point and adds it to the figure.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddLine(float endPointX, float endPointY)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddLine(endPointX As Single, endPointY As Single)</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="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">endPointX</span></td>
      <td><p>The x-coordinate of the end point of the line to draw.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">endPointY</span></td>
      <td><p>The y-coordinate of the end point of the line to draw.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
