# GrapeCity.Documents.Drawing.IPathExt.AddRect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Drawing_IPathExt_AddRect_" data-uid="GrapeCity.Documents.Drawing.IPathExt.AddRect*">AddRect Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Drawing_IPathExt_AddRect_" data-uid="GrapeCity.Documents.Drawing.IPathExt.AddRect*"></a>
<h4 id="GrapeCity_Documents_Drawing_IPathExt_AddRect_GrapeCity_Documents_Drawing_IPath_System_Drawing_RectangleF_GrapeCity_Documents_Drawing_FigureEnd_" data-uid="GrapeCity.Documents.Drawing.IPathExt.AddRect(GrapeCity.Documents.Drawing.IPath,System.Drawing.RectangleF,GrapeCity.Documents.Drawing.FigureEnd)">AddRect(IPath, RectangleF, FigureEnd)</h4>
<div class="markdown level1 summary"><p>Adds rect figure to the path.
Note! Method calls <a class="xref" href="GrapeCity.Documents.Drawing.IPath.BeginFigure.html#GrapeCity_Documents_Drawing_IPath_BeginFigure_System_Drawing_PointF_">BeginFigure(PointF)</a> and <a class="xref" href="GrapeCity.Documents.Drawing.IPath.EndFigure.html#GrapeCity_Documents_Drawing_IPath_EndFigure_GrapeCity_Documents_Drawing_FigureEnd_">EndFigure(FigureEnd)</a>,
<code class="paramref">figureEnd</code> used as parameter for <a class="xref" href="GrapeCity.Documents.Drawing.IPath.EndFigure.html#GrapeCity_Documents_Drawing_IPath_EndFigure_GrapeCity_Documents_Drawing_FigureEnd_">EndFigure(FigureEnd)</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void AddRect(this IPath path, RectangleF bounds, FigureEnd figureEnd)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub AddRect(path As IPath, bounds As RectangleF, figureEnd As FigureEnd)</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.Documents.Drawing.IPath.html">IPath</a></td>
      <td><span class="parametername">path</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Drawing.IPath.html">IPath</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">bounds</span></td>
      <td><p>The rectangle bounds.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Drawing.FigureEnd.html">FigureEnd</a></td>
      <td><span class="parametername">figureEnd</span></td>
      <td><p>The parameter of called <a class="xref" href="GrapeCity.Documents.Drawing.IPath.EndFigure.html#GrapeCity_Documents_Drawing_IPath_EndFigure_GrapeCity_Documents_Drawing_FigureEnd_">EndFigure(FigureEnd)</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
