# C1.Util.XLPath.AddArc

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_XLPath_AddArc_" data-uid="C1.Util.XLPath.AddArc*">AddArc Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_XLPath_AddArc_" data-uid="C1.Util.XLPath.AddArc*"></a>
<h4 id="C1_Util_XLPath_AddArc_GrapeCity_Documents_Drawing_ArcSegment_" data-uid="C1.Util.XLPath.AddArc(GrapeCity.Documents.Drawing.ArcSegment)">AddArc(ArcSegment)</h4>
<div class="markdown level1 summary"><p>Adds a single arc to the path geometry.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public void AddArc(ArcSegment arcSegment)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub AddArc(arcSegment As ArcSegment)</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><span class="xref">ArcSegment</span></td>
      <td><span class="parametername">arcSegment</span></td>
      <td><p>The arc segment to add to the figure.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_XLPath_AddArc_" data-uid="C1.Util.XLPath.AddArc*"></a>
<h4 id="C1_Util_XLPath_AddArc_System_Drawing_RectangleF_System_Single_System_Single_System_Boolean_" data-uid="C1.Util.XLPath.AddArc(System.Drawing.RectangleF,System.Single,System.Single,System.Boolean)">AddArc(RectangleF, float, float, bool)</h4>
<div class="markdown level1 summary"><p>Adds arc for this path.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddArc(RectangleF rc, float startAngle, float sweepAngle, bool clockwise = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddArc(rc As RectangleF, startAngle As Single, sweepAngle As Single, Optional clockwise As Boolean = True)</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.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The rectangle that represents the pie or arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">startAngle</span></td>
      <td><p>The start angle for the pie or arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">sweepAngle</span></td>
      <td><p>The sweep angle for the pie or arc.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">clockwise</span></td>
      <td><p>The sweep direction, by default clockwise, otherwise counterclockwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
