# GrapeCity.Drawing.Rect

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Drawing_Rect" data-uid="GrapeCity.Drawing.Rect" class="text-break">Rect Struct
</h1>
  <div class="markdown level0 summary"><p>Stores a set of four integers that represent the coordinates of a rectangle.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Drawing.html">GrapeCity.Drawing</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Drawing_Rect_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Rect</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Rect</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_Drawing_Rect__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Drawing.Rect.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Drawing.Rect.-ctor.html#GrapeCity_Drawing_Rect__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">Rect(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> struct with the specified coordinates.</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_Drawing_Rect_Empty" data-uid="GrapeCity.Drawing.Rect.Empty">
          <a class="xref" href="GrapeCity.Drawing.Rect.Empty.html">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Represents a <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure with its properties left uninitialized.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Bottom" data-uid="GrapeCity.Drawing.Rect.Bottom">
          <a class="xref" href="GrapeCity.Drawing.Rect.Bottom.html#GrapeCity_Drawing_Rect_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the y-coordinate that is the sum of <a class="xref" href="GrapeCity.Drawing.Rect.Top.html#GrapeCity_Drawing_Rect_Top">Top</a> and <a class="xref" href="GrapeCity.Drawing.Rect.Height.html#GrapeCity_Drawing_Rect_Height">Height</a> property values of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Height" data-uid="GrapeCity.Drawing.Rect.Height">
          <a class="xref" href="GrapeCity.Drawing.Rect.Height.html#GrapeCity_Drawing_Rect_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Left" data-uid="GrapeCity.Drawing.Rect.Left">
          <a class="xref" href="GrapeCity.Drawing.Rect.Left.html#GrapeCity_Drawing_Rect_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the x-coordinate of the left edge of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Right" data-uid="GrapeCity.Drawing.Rect.Right">
          <a class="xref" href="GrapeCity.Drawing.Rect.Right.html#GrapeCity_Drawing_Rect_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the x-coordinate that is the sum of <a class="xref" href="GrapeCity.Drawing.Rect.Left.html#GrapeCity_Drawing_Rect_Left">Left</a> and <a class="xref" href="GrapeCity.Drawing.Rect.Width.html#GrapeCity_Drawing_Rect_Width">Width</a> property values of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Top" data-uid="GrapeCity.Drawing.Rect.Top">
          <a class="xref" href="GrapeCity.Drawing.Rect.Top.html#GrapeCity_Drawing_Rect_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the y-coordinate of the top edge of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Width" data-uid="GrapeCity.Drawing.Rect.Width">
          <a class="xref" href="GrapeCity.Drawing.Rect.Width.html#GrapeCity_Drawing_Rect_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_X" data-uid="GrapeCity.Drawing.Rect.X">
          <a class="xref" href="GrapeCity.Drawing.Rect.X.html#GrapeCity_Drawing_Rect_X">X</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the x-coordinate of the left edge of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Y" data-uid="GrapeCity.Drawing.Rect.Y">
          <a class="xref" href="GrapeCity.Drawing.Rect.Y.html#GrapeCity_Drawing_Rect_Y">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the y-coordinate of the top edge of this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</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_Drawing_Rect_Contains_System_Int32_System_Int32_" data-uid="GrapeCity.Drawing.Rect.Contains(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Drawing.Rect.Contains.html#GrapeCity_Drawing_Rect_Contains_System_Int32_System_Int32_">Contains(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified point is contained within this <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Inflate_System_Int32_System_Int32_" data-uid="GrapeCity.Drawing.Rect.Inflate(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Drawing.Rect.Inflate.html#GrapeCity_Drawing_Rect_Inflate_System_Int32_System_Int32_">Inflate(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Enlarges a Rectangle structure by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Intersect_GrapeCity_Drawing_Rect_GrapeCity_Drawing_Rect_" data-uid="GrapeCity.Drawing.Rect.Intersect(GrapeCity.Drawing.Rect,GrapeCity.Drawing.Rect)">
          <a class="xref" href="GrapeCity.Drawing.Rect.Intersect.html#GrapeCity_Drawing_Rect_Intersect_GrapeCity_Drawing_Rect_GrapeCity_Drawing_Rect_">Intersect(Rect, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a rectangle that represents the intersetion between a and
b. If there is no intersection, null is returned.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_IntersectsWith_GrapeCity_Drawing_Rect_" data-uid="GrapeCity.Drawing.Rect.IntersectsWith(GrapeCity.Drawing.Rect)">
          <a class="xref" href="GrapeCity.Drawing.Rect.IntersectsWith.html#GrapeCity_Drawing_Rect_IntersectsWith_GrapeCity_Drawing_Rect_">IntersectsWith(Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if this rectangle intersects with <code class="paramref">rect</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Offset_System_Int32_System_Int32_" data-uid="GrapeCity.Drawing.Rect.Offset(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Drawing.Rect.Offset.html#GrapeCity_Drawing_Rect_Offset_System_Int32_System_Int32_">Offset(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adjusts the location of this rectangle by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Drawing_Rect_Union_GrapeCity_Drawing_Rect_GrapeCity_Drawing_Rect_" data-uid="GrapeCity.Drawing.Rect.Union(GrapeCity.Drawing.Rect,GrapeCity.Drawing.Rect)">
          <a class="xref" href="GrapeCity.Drawing.Rect.Union.html#GrapeCity_Drawing_Rect_Union_GrapeCity_Drawing_Rect_GrapeCity_Drawing_Rect_">Union(Rect, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structure that contains the union of two <a class="xref" href="GrapeCity.Drawing.Rectangle.html">Rectangle</a> structures.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
