# GrapeCity.Documents.Common.Quadrilateral.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Common_Quadrilateral__ctor_" data-uid="GrapeCity.Documents.Common.Quadrilateral.#ctor*">Quadrilateral Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Common_Quadrilateral__ctor_" data-uid="GrapeCity.Documents.Common.Quadrilateral.#ctor*"></a>
<h4 id="GrapeCity_Documents_Common_Quadrilateral__ctor_System_Drawing_PointF_System_Drawing_PointF_System_Drawing_PointF_System_Drawing_PointF_" data-uid="GrapeCity.Documents.Common.Quadrilateral.#ctor(System.Drawing.PointF,System.Drawing.PointF,System.Drawing.PointF,System.Drawing.PointF)">Quadrilateral(PointF, PointF, PointF, PointF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a> struct from the four corners of a rectangle.</p>
<p>
The vertices's of the quadrilateral correspond to the corners of the rectangle
clockwise starting from the bottom left vertex.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Quadrilateral(PointF bottomLeft, PointF topLeft, PointF topRight, PointF bottomRight)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(bottomLeft As PointF, topLeft As PointF, topRight 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">bottomLeft</span></td>
      <td><p>The rectangle's bottom left corner.</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">topLeft</span></td>
      <td><p>The rectangle's top left corner.</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">topRight</span></td>
      <td><p>The rectangle's top right corner.</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">bottomRight</span></td>
      <td><p>The rectangle's bottom right corner.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Common_Quadrilateral__ctor_" data-uid="GrapeCity.Documents.Common.Quadrilateral.#ctor*"></a>
<h4 id="GrapeCity_Documents_Common_Quadrilateral__ctor_System_Drawing_RectangleF_" data-uid="GrapeCity.Documents.Common.Quadrilateral.#ctor(System.Drawing.RectangleF)">Quadrilateral(RectangleF)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a> struct from a rectangle.</p>
<p>
The vertices's of the quadrilateral correspond to the corners of the rectangle
clockwise starting from the bottom left vertex.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Quadrilateral(RectangleF rect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rect 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">rect</span></td>
      <td><p>The rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
