# GrapeCity.ActiveReports.Chart.Drawing.Drawing2D.GraphicsPath.AddLine

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Chart_Drawing_Drawing2D_GraphicsPath_AddLine_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Drawing2D.GraphicsPath.AddLine*">AddLine Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Chart_Drawing_Drawing2D_GraphicsPath_AddLine_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Drawing2D.GraphicsPath.AddLine*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Drawing_Drawing2D_GraphicsPath_AddLine_System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Drawing2D.GraphicsPath.AddLine(System.Single,System.Single,System.Single,System.Single)">AddLine(float, float, float, float)</h4>
<div class="markdown level1 summary"><p>Appends a line segment to this GraphicsPath.</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 x1, float y1, float x2, float y2)</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">x1</span></td>
      <td><p>The x-coordinate of the starting point of the line.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">y1</span></td>
      <td><p>The y-coordinate of the starting point of the line.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">x2</span></td>
      <td><p>The x-coordinate of the endpoint of the line.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">y2</span></td>
      <td><p>The y-coordinate of the endpoint of the line.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Chart_Drawing_Drawing2D_GraphicsPath_AddLine_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Drawing2D.GraphicsPath.AddLine*"></a>
<h4 id="GrapeCity_ActiveReports_Chart_Drawing_Drawing2D_GraphicsPath_AddLine_System_Drawing_PointF_System_Drawing_PointF_" data-uid="GrapeCity.ActiveReports.Chart.Drawing.Drawing2D.GraphicsPath.AddLine(System.Drawing.PointF,System.Drawing.PointF)">AddLine(PointF, PointF)</h4>
<div class="markdown level1 summary"><p>Appends a line segment to this GraphicsPath.</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 point1, PointF point2)</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">point1</span></td>
      <td><p>A PointF that represents the starting point of the line.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">point2</span></td>
      <td><p>A PointF that represents the endpoint of the line.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
