# GrapeCity.Documents.Common.Quadrilateral

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_Quadrilateral" data-uid="GrapeCity.Documents.Common.Quadrilateral" class="text-break">Quadrilateral Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a quadrilateral defined by its four vertices's.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Common.html">GrapeCity.Documents.Common</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Common_Quadrilateral_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Quadrilateral : IEquatable&lt;Quadrilateral&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Quadrilateral
    Implements IEquatable(Of Quadrilateral)</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td 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)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.-ctor.html#GrapeCity_Documents_Common_Quadrilateral__ctor_System_Drawing_PointF_System_Drawing_PointF_System_Drawing_PointF_System_Drawing_PointF_">Quadrilateral(PointF, PointF, PointF, PointF)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral__ctor_System_Drawing_RectangleF_" data-uid="GrapeCity.Documents.Common.Quadrilateral.#ctor(System.Drawing.RectangleF)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.-ctor.html#GrapeCity_Documents_Common_Quadrilateral__ctor_System_Drawing_RectangleF_">Quadrilateral(RectangleF)</a>
        </td>
        <td 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>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_A" data-uid="GrapeCity.Documents.Common.Quadrilateral.A">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.A.html">A</a>
        </td>
        <td class="markdown level1 summary"><p>The first vertex of the quadrilateral.</p>
<p>If initialized from a rectangle, corresponds to the rectangle's bottom left corner.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_B" data-uid="GrapeCity.Documents.Common.Quadrilateral.B">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.B.html">B</a>
        </td>
        <td class="markdown level1 summary"><p>The second vertex of the quadrilateral.</p>
<p>If initialized from a rectangle, corresponds to the rectangle's top left corner.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_C" data-uid="GrapeCity.Documents.Common.Quadrilateral.C">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.C.html">C</a>
        </td>
        <td class="markdown level1 summary"><p>The third vertex of the quadrilateral.</p>
<p>If initialized from a rectangle, corresponds to the rectangle's top right corner.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_D" data-uid="GrapeCity.Documents.Common.Quadrilateral.D">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.D.html">D</a>
        </td>
        <td class="markdown level1 summary"><p>The fourth vertex of the quadrilateral.</p>
<p>If initialized from a rectangle, corresponds to the rectangle's bottom right corner.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_Equals_GrapeCity_Documents_Common_Quadrilateral_" data-uid="GrapeCity.Documents.Common.Quadrilateral.Equals(GrapeCity.Documents.Common.Quadrilateral)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.Equals.html#GrapeCity_Documents_Common_Quadrilateral_Equals_GrapeCity_Documents_Common_Quadrilateral_">Equals(Quadrilateral)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_Equals_System_Object_" data-uid="GrapeCity.Documents.Common.Quadrilateral.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.Equals.html#GrapeCity_Documents_Common_Quadrilateral_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_GetArea" data-uid="GrapeCity.Documents.Common.Quadrilateral.GetArea">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.GetArea.html#GrapeCity_Documents_Common_Quadrilateral_GetArea">GetArea()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the area of the quadrilateral.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_GetHashCode" data-uid="GrapeCity.Documents.Common.Quadrilateral.GetHashCode">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.GetHashCode.html#GrapeCity_Documents_Common_Quadrilateral_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_Multiply_System_Single_System_Single_" data-uid="GrapeCity.Documents.Common.Quadrilateral.Multiply(System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.Multiply.html#GrapeCity_Documents_Common_Quadrilateral_Multiply_System_Single_System_Single_">Multiply(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Multiplies this Quadrilateral by the x and y.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_Offset_GrapeCity_Documents_Common_Quadrilateral_System_Single_System_Single_" data-uid="GrapeCity.Documents.Common.Quadrilateral.Offset(GrapeCity.Documents.Common.Quadrilateral,System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.Offset.html#GrapeCity_Documents_Common_Quadrilateral_Offset_GrapeCity_Documents_Common_Quadrilateral_System_Single_System_Single_">Offset(Quadrilateral, float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Offsets all points of this Quadrilateral by the x and y.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_Offset_System_Single_System_Single_" data-uid="GrapeCity.Documents.Common.Quadrilateral.Offset(System.Single,System.Single)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.Offset.html#GrapeCity_Documents_Common_Quadrilateral_Offset_System_Single_System_Single_">Offset(float, float)</a>
        </td>
        <td class="markdown level1 summary"><p>Offsets all points of this Quadrilateral by the x and y.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_ToRect" data-uid="GrapeCity.Documents.Common.Quadrilateral.ToRect">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.ToRect.html#GrapeCity_Documents_Common_Quadrilateral_ToRect">ToRect()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> structure that contains this <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_ToString" data-uid="GrapeCity.Documents.Common.Quadrilateral.ToString">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.ToString.html#GrapeCity_Documents_Common_Quadrilateral_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_op_Equality_GrapeCity_Documents_Common_Quadrilateral_GrapeCity_Documents_Common_Quadrilateral_" data-uid="GrapeCity.Documents.Common.Quadrilateral.op_Equality(GrapeCity.Documents.Common.Quadrilateral,GrapeCity.Documents.Common.Quadrilateral)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.op_Equality.html#GrapeCity_Documents_Common_Quadrilateral_op_Equality_GrapeCity_Documents_Common_Quadrilateral_GrapeCity_Documents_Common_Quadrilateral_">operator ==(Quadrilateral, Quadrilateral)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether two specified <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a> objects are equivalent.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_op_Implicit_System_Drawing_RectangleF__GrapeCity_Documents_Common_Quadrilateral" data-uid="GrapeCity.Documents.Common.Quadrilateral.op_Implicit(System.Drawing.RectangleF)~GrapeCity.Documents.Common.Quadrilateral">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.op_Implicit.html#GrapeCity_Documents_Common_Quadrilateral_op_Implicit_System_Drawing_RectangleF__GrapeCity_Documents_Common_Quadrilateral">implicit operator Quadrilateral(RectangleF)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> to <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_Quadrilateral_op_Inequality_GrapeCity_Documents_Common_Quadrilateral_GrapeCity_Documents_Common_Quadrilateral_" data-uid="GrapeCity.Documents.Common.Quadrilateral.op_Inequality(GrapeCity.Documents.Common.Quadrilateral,GrapeCity.Documents.Common.Quadrilateral)">
          <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.op_Inequality.html#GrapeCity_Documents_Common_Quadrilateral_op_Inequality_GrapeCity_Documents_Common_Quadrilateral_GrapeCity_Documents_Common_Quadrilateral_">operator !=(Quadrilateral, Quadrilateral)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether two specified <a class="xref" href="GrapeCity.Documents.Common.Quadrilateral.html">Quadrilateral</a> objects are NOT equivalent.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
