# C1.Win.Interop.Rect

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Interop_Rect" data-uid="C1.Win.Interop.Rect" class="text-break">Rect Struct
</h1>
  <div class="markdown level0 summary"><p>Stores a set of four <b>double</b> values that represent the location and size of a rectangle.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Interop.html">C1.Win.Interop</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_Interop_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="C1_Win_Interop_Rect__ctor_C1_Win_Interop_Point_C1_Win_Interop_Point_" data-uid="C1.Win.Interop.Rect.#ctor(C1.Win.Interop.Point,C1.Win.Interop.Point)">
          <a class="xref" href="C1.Win.Interop.Rect.-ctor.html#C1_Win_Interop_Rect__ctor_C1_Win_Interop_Point_C1_Win_Interop_Point_">Rect(Point, Point)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect__ctor_C1_Win_Interop_Point_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Rect.#ctor(C1.Win.Interop.Point,C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Rect.-ctor.html#C1_Win_Interop_Rect__ctor_C1_Win_Interop_Point_C1_Win_Interop_Size_">Rect(Point, Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect__ctor_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.#ctor(System.Double,System.Double,System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Rect.-ctor.html#C1_Win_Interop_Rect__ctor_System_Double_System_Double_System_Double_System_Double_">Rect(double, double, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</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="C1_Win_Interop_Rect_Bottom" data-uid="C1.Win.Interop.Rect.Bottom">
          <a class="xref" href="C1.Win.Interop.Rect.Bottom.html#C1_Win_Interop_Rect_Bottom">Bottom</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the Y coordinate of the bottom edge of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_BottomLeft" data-uid="C1.Win.Interop.Rect.BottomLeft">
          <a class="xref" href="C1.Win.Interop.Rect.BottomLeft.html#C1_Win_Interop_Rect_BottomLeft">BottomLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the coordinates of the bottom left corner of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_BottomRight" data-uid="C1.Win.Interop.Rect.BottomRight">
          <a class="xref" href="C1.Win.Interop.Rect.BottomRight.html#C1_Win_Interop_Rect_BottomRight">BottomRight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the coordinates of the bottom right corner of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Empty" data-uid="C1.Win.Interop.Rect.Empty">
          <a class="xref" href="C1.Win.Interop.Rect.Empty.html#C1_Win_Interop_Rect_Empty">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Represents an empty instance of the <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Height" data-uid="C1.Win.Interop.Rect.Height">
          <a class="xref" href="C1.Win.Interop.Rect.Height.html#C1_Win_Interop_Rect_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the height of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_IsEmpty" data-uid="C1.Win.Interop.Rect.IsEmpty">
          <a class="xref" href="C1.Win.Interop.Rect.IsEmpty.html#C1_Win_Interop_Rect_IsEmpty">IsEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="C1.Win.Interop.Rect.Width.html#C1_Win_Interop_Rect_Width">Width</a> and <a class="xref" href="C1.Win.Interop.Rect.Height.html#C1_Win_Interop_Rect_Height">Height</a>
properties of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure have zero values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Left" data-uid="C1.Win.Interop.Rect.Left">
          <a class="xref" href="C1.Win.Interop.Rect.Left.html#C1_Win_Interop_Rect_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the X coordinate of the left edge of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Location" data-uid="C1.Win.Interop.Rect.Location">
          <a class="xref" href="C1.Win.Interop.Rect.Location.html#C1_Win_Interop_Rect_Location">Location</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the coordinates of the top left corner of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Right" data-uid="C1.Win.Interop.Rect.Right">
          <a class="xref" href="C1.Win.Interop.Rect.Right.html#C1_Win_Interop_Rect_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the X coordinate of the right edge of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Size" data-uid="C1.Win.Interop.Rect.Size">
          <a class="xref" href="C1.Win.Interop.Rect.Size.html#C1_Win_Interop_Rect_Size">Size</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Top" data-uid="C1.Win.Interop.Rect.Top">
          <a class="xref" href="C1.Win.Interop.Rect.Top.html#C1_Win_Interop_Rect_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the Y coordinate of the top edge of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_TopLeft" data-uid="C1.Win.Interop.Rect.TopLeft">
          <a class="xref" href="C1.Win.Interop.Rect.TopLeft.html#C1_Win_Interop_Rect_TopLeft">TopLeft</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the coordinates of the top left corner of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_TopRight" data-uid="C1.Win.Interop.Rect.TopRight">
          <a class="xref" href="C1.Win.Interop.Rect.TopRight.html#C1_Win_Interop_Rect_TopRight">TopRight</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the coordinates of the top right corner of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Width" data-uid="C1.Win.Interop.Rect.Width">
          <a class="xref" href="C1.Win.Interop.Rect.Width.html#C1_Win_Interop_Rect_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_X" data-uid="C1.Win.Interop.Rect.X">
          <a class="xref" href="C1.Win.Interop.Rect.X.html#C1_Win_Interop_Rect_X">X</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the X coordinate of the top left corner of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Y" data-uid="C1.Win.Interop.Rect.Y">
          <a class="xref" href="C1.Win.Interop.Rect.Y.html#C1_Win_Interop_Rect_Y">Y</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the Y coordinate of the top left corner of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</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="C1_Win_Interop_Rect_Contains_C1_Win_Interop_Point_" data-uid="C1.Win.Interop.Rect.Contains(C1.Win.Interop.Point)">
          <a class="xref" href="C1.Win.Interop.Rect.Contains.html#C1_Win_Interop_Rect_Contains_C1_Win_Interop_Point_">Contains(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether the specified point is contained within the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Contains_C1_Win_Interop_Rect_" data-uid="C1.Win.Interop.Rect.Contains(C1.Win.Interop.Rect)">
          <a class="xref" href="C1.Win.Interop.Rect.Contains.html#C1_Win_Interop_Rect_Contains_C1_Win_Interop_Rect_">Contains(Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether the specified rectangle is entirely contained within the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Contains_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.Contains(System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Rect.Contains.html#C1_Win_Interop_Rect_Contains_System_Double_System_Double_">Contains(double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether a point specified by its coordinates is contained within the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Deflate_C1_Win_Interop_Thickness_" data-uid="C1.Win.Interop.Rect.Deflate(C1.Win.Interop.Thickness)">
          <a class="xref" href="C1.Win.Interop.Rect.Deflate.html#C1_Win_Interop_Rect_Deflate_C1_Win_Interop_Thickness_">Deflate(Thickness)</a>
        </td>
        <td class="markdown level1 summary"><p>Deflates the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> by the specified amounts provided as <a class="xref" href="C1.Win.Interop.Thickness.html">Thickness</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Equals_System_Object_" data-uid="C1.Win.Interop.Rect.Equals(System.Object)">
          <a class="xref" href="C1.Win.Interop.Rect.Equals.html#C1_Win_Interop_Rect_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether this instance and a specified object are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_FromLTRB_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.FromLTRB(System.Double,System.Double,System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Rect.FromLTRB.html#C1_Win_Interop_Rect_FromLTRB_System_Double_System_Double_System_Double_System_Double_">FromLTRB(double, double, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure based on the coordinates
of its top-left and bottom-right corners.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_GetHashCode" data-uid="C1.Win.Interop.Rect.GetHashCode">
          <a class="xref" href="C1.Win.Interop.Rect.GetHashCode.html#C1_Win_Interop_Rect_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Inflate_C1_Win_Interop_Rect_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.Inflate(C1.Win.Interop.Rect,System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Rect.Inflate.html#C1_Win_Interop_Rect_Inflate_C1_Win_Interop_Rect_System_Double_System_Double_">Inflate(Rect, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure from another <b>RectangleD</b>,
inflated by the specified amounts vertically and horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Inflate_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Rect.Inflate(C1.Win.Interop.Size)">
          <a class="xref" href="C1.Win.Interop.Rect.Inflate.html#C1_Win_Interop_Rect_Inflate_C1_Win_Interop_Size_">Inflate(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> by a specified <a class="xref" href="C1.Win.Interop.Rect.Size.html#C1_Win_Interop_Rect_Size">Size</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Inflate_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.Inflate(System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Rect.Inflate.html#C1_Win_Interop_Rect_Inflate_System_Double_System_Double_">Inflate(double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> by specified horizontal and vertical amounts.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Inflate_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.Inflate(System.Double,System.Double,System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Rect.Inflate.html#C1_Win_Interop_Rect_Inflate_System_Double_System_Double_System_Double_System_Double_">Inflate(double, double, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Inflates the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> by the specified amounts on four sides.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Intersect_C1_Win_Interop_Rect_" data-uid="C1.Win.Interop.Rect.Intersect(C1.Win.Interop.Rect)">
          <a class="xref" href="C1.Win.Interop.Rect.Intersect.html#C1_Win_Interop_Rect_Intersect_C1_Win_Interop_Rect_">Intersect(Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure with the intersection
of itself and another <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Intersect_C1_Win_Interop_Rect_C1_Win_Interop_Rect_" data-uid="C1.Win.Interop.Rect.Intersect(C1.Win.Interop.Rect,C1.Win.Interop.Rect)">
          <a class="xref" href="C1.Win.Interop.Rect.Intersect.html#C1_Win_Interop_Rect_Intersect_C1_Win_Interop_Rect_C1_Win_Interop_Rect_">Intersect(Rect, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure representing the intersection
of two <b>RectangleD</b> structures.
(The intersection may be empty, in which case <a class="xref" href="C1.Win.Interop.Rect.Empty.html#C1_Win_Interop_Rect_Empty">Empty</a> is returned.)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_IntersectsWith_C1_Win_Interop_Rect_" data-uid="C1.Win.Interop.Rect.IntersectsWith(C1.Win.Interop.Rect)">
          <a class="xref" href="C1.Win.Interop.Rect.IntersectsWith.html#C1_Win_Interop_Rect_IntersectsWith_C1_Win_Interop_Rect_">IntersectsWith(Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> intersects with another.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Offset_C1_Win_Interop_Point_" data-uid="C1.Win.Interop.Rect.Offset(C1.Win.Interop.Point)">
          <a class="xref" href="C1.Win.Interop.Rect.Offset.html#C1_Win_Interop_Rect_Offset_C1_Win_Interop_Point_">Offset(Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Offsets the location of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> by horizontal and vertical amounts specified by a <a class="xref" href="C1.Win.Interop.Point.html">Point</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Offset_C1_Win_Interop_Rect_C1_Win_Interop_Point_" data-uid="C1.Win.Interop.Rect.Offset(C1.Win.Interop.Rect,C1.Win.Interop.Point)">
          <a class="xref" href="C1.Win.Interop.Rect.Offset.html#C1_Win_Interop_Rect_Offset_C1_Win_Interop_Rect_C1_Win_Interop_Point_">Offset(Rect, Point)</a>
        </td>
        <td class="markdown level1 summary"><p>Adjusts the location of this rectangle by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Offset_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.Offset(System.Double,System.Double)">
          <a class="xref" href="C1.Win.Interop.Rect.Offset.html#C1_Win_Interop_Rect_Offset_System_Double_System_Double_">Offset(double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Offsets the location of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> by specified horizontal and vertical amounts.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Parse_System_String_C1_Win_Interop_Rect__System_Boolean_" data-uid="C1.Win.Interop.Rect.Parse(System.String,C1.Win.Interop.Rect@,System.Boolean)">
          <a class="xref" href="C1.Win.Interop.Rect.Parse.html#C1_Win_Interop_Rect_Parse_System_String_C1_Win_Interop_Rect__System_Boolean_">Parse(string, out Rect, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a string to a <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_ToRectangle" data-uid="C1.Win.Interop.Rect.ToRectangle">
          <a class="xref" href="C1.Win.Interop.Rect.ToRectangle.html#C1_Win_Interop_Rect_ToRectangle">ToRectangle()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_ToRectangleF" data-uid="C1.Win.Interop.Rect.ToRectangleF">
          <a class="xref" href="C1.Win.Interop.Rect.ToRectangleF.html#C1_Win_Interop_Rect_ToRectangleF">ToRectangleF()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> to a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_ToString" data-uid="C1.Win.Interop.Rect.ToString">
          <a class="xref" href="C1.Win.Interop.Rect.ToString.html#C1_Win_Interop_Rect_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure to a human-readable string representing it.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_Union_C1_Win_Interop_Rect_C1_Win_Interop_Rect_" data-uid="C1.Win.Interop.Rect.Union(C1.Win.Interop.Rect,C1.Win.Interop.Rect)">
          <a class="xref" href="C1.Win.Interop.Rect.Union.html#C1_Win_Interop_Rect_Union_C1_Win_Interop_Rect_C1_Win_Interop_Rect_">Union(Rect, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure representing the smallest possible
rectangle containing the two specified rectangles.</p>
</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="C1_Win_Interop_Rect_op_Equality_C1_Win_Interop_Rect_C1_Win_Interop_Rect_" data-uid="C1.Win.Interop.Rect.op_Equality(C1.Win.Interop.Rect,C1.Win.Interop.Rect)">
          <a class="xref" href="C1.Win.Interop.Rect.op_Equality.html#C1_Win_Interop_Rect_op_Equality_C1_Win_Interop_Rect_C1_Win_Interop_Rect_">operator ==(Rect, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether two <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structures are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_op_Implicit_System_Drawing_Rectangle__C1_Win_Interop_Rect" data-uid="C1.Win.Interop.Rect.op_Implicit(System.Drawing.Rectangle)~C1.Win.Interop.Rect">
          <a class="xref" href="C1.Win.Interop.Rect.op_Implicit.html#C1_Win_Interop_Rect_op_Implicit_System_Drawing_Rectangle__C1_Win_Interop_Rect">implicit operator Rect(Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a> to a <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_op_Implicit_System_Drawing_RectangleF__C1_Win_Interop_Rect" data-uid="C1.Win.Interop.Rect.op_Implicit(System.Drawing.RectangleF)~C1.Win.Interop.Rect">
          <a class="xref" href="C1.Win.Interop.Rect.op_Implicit.html#C1_Win_Interop_Rect_op_Implicit_System_Drawing_RectangleF__C1_Win_Interop_Rect">implicit operator Rect(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 <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Interop_Rect_op_Inequality_C1_Win_Interop_Rect_C1_Win_Interop_Rect_" data-uid="C1.Win.Interop.Rect.op_Inequality(C1.Win.Interop.Rect,C1.Win.Interop.Rect)">
          <a class="xref" href="C1.Win.Interop.Rect.op_Inequality.html#C1_Win_Interop_Rect_op_Inequality_C1_Win_Interop_Rect_C1_Win_Interop_Rect_">operator !=(Rect, Rect)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether two <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structures are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
