# GrapeCity.Documents.Imaging.RectangularFigure.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_RectangularFigure__ctor_" data-uid="GrapeCity.Documents.Imaging.RectangularFigure.#ctor*">RectangularFigure Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_RectangularFigure__ctor_" data-uid="GrapeCity.Documents.Imaging.RectangularFigure.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_RectangularFigure__ctor_System_Drawing_RectangleF_" data-uid="GrapeCity.Documents.Imaging.RectangularFigure.#ctor(System.Drawing.RectangleF)">RectangularFigure(RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.RectangularFigure.html">RectangularFigure</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangularFigure(RectangleF bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bounds As RectangleF)</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">bounds</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_RectangularFigure__ctor_" data-uid="GrapeCity.Documents.Imaging.RectangularFigure.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_RectangularFigure__ctor_System_Single_System_Single_System_Single_System_Single_" data-uid="GrapeCity.Documents.Imaging.RectangularFigure.#ctor(System.Single,System.Single,System.Single,System.Single)">RectangularFigure(float, float, float, float)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.RectangularFigure.html">RectangularFigure</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangularFigure(float x, float y, float width, float height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(x As Single, y As Single, width As Single, height 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">x</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">y</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">width</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">height</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_RectangularFigure__ctor_" data-uid="GrapeCity.Documents.Imaging.RectangularFigure.#ctor*"></a>
<h4 id="GrapeCity_Documents_Imaging_RectangularFigure__ctor_System_Drawing_PointF_System_Drawing_PointF_" data-uid="GrapeCity.Documents.Imaging.RectangularFigure.#ctor(System.Drawing.PointF,System.Drawing.PointF)">RectangularFigure(PointF, PointF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Imaging.RectangularFigure.html">RectangularFigure</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RectangularFigure(PointF topLeft, PointF bottomRight)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(topLeft As PointF, bottomRight 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">topLeft</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.pointf">PointF</a></td>
      <td><span class="parametername">bottomRight</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
