# C1.Win.Interop.Rect.FromLTRB

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Interop_Rect_FromLTRB_" data-uid="C1.Win.Interop.Rect.FromLTRB*">FromLTRB Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Interop_Rect_FromLTRB_" data-uid="C1.Win.Interop.Rect.FromLTRB*"></a>
<h4 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)">FromLTRB(double, double, double, double)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Rect FromLTRB(double left, double top, double right, double bottom)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromLTRB(left As Double, top As Double, right As Double, bottom As Double) As Rect</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.double">double</a></td>
      <td><span class="parametername">left</span></td>
      <td><p>The X coordinate of the upper-left corner of the rectangular region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">top</span></td>
      <td><p>The Y coordinate of the upper-left corner of the rectangular region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">right</span></td>
      <td><p>The X coordinate of the lower-right corner of the rectangular region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">bottom</span></td>
      <td><p>The Y coordinate of the lower-right corner of the rectangular region.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.Interop.Rect.html">Rect</a></td>
      <td><p>The newly created <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> structure.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
