# C1.Win.Interop.Rect.Inflate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Interop_Rect_Inflate_" data-uid="C1.Win.Interop.Rect.Inflate*">Inflate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Interop_Rect_Inflate_" data-uid="C1.Win.Interop.Rect.Inflate*"></a>
<h4 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)">Inflate(double, double, double, double)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Inflate(double left, double top, double right, double bottom)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Inflate(left As Double, top As Double, right As Double, bottom As Double)</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 amount to add on the left.</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 amount to add at the top.</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 amount to add on the right.</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 amount to add on the bottom.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Interop_Rect_Inflate_" data-uid="C1.Win.Interop.Rect.Inflate*"></a>
<h4 id="C1_Win_Interop_Rect_Inflate_C1_Win_Interop_Size_" data-uid="C1.Win.Interop.Rect.Inflate(C1.Win.Interop.Size)">Inflate(Size)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Inflate(Size size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Inflate(size As Size)</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="C1.Win.Interop.Size.html">Size</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The <a class="xref" href="C1.Win.Interop.Rect.Size.html#C1_Win_Interop_Rect_Size">Size</a> to inflate the current rectangle by.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Interop_Rect_Inflate_" data-uid="C1.Win.Interop.Rect.Inflate*"></a>
<h4 id="C1_Win_Interop_Rect_Inflate_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.Inflate(System.Double,System.Double)">Inflate(double, double)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Inflate(double x, double y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Inflate(x As Double, y As Double)</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">x</span></td>
      <td><p>The amount to add on the left and right of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The amount to add at the top and bottom of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Interop_Rect_Inflate_" data-uid="C1.Win.Interop.Rect.Inflate*"></a>
<h4 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)">Inflate(Rect, double, double)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Rect Inflate(Rect rc, double x, double y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Inflate(rc As Rect, x As Double, y 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="C1.Win.Interop.Rect.html">Rect</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> a copy of which is created and inflated.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x</span></td>
      <td><p>The amount by which to inflate the resulting rectangle horizontally.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y</span></td>
      <td><p>The amount by which to inflate the resulting rectangle vertically.</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>
