# C1.C1Preview.RectangleD.Inflate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_RectangleD_Inflate_" data-uid="C1.C1Preview.RectangleD.Inflate*">Inflate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_RectangleD_Inflate_" data-uid="C1.C1Preview.RectangleD.Inflate*"></a>
<h4 id="C1_C1Preview_RectangleD_Inflate_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.C1Preview.RectangleD.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.C1Preview.RectangleD.html">RectangleD</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_C1Preview_RectangleD_Inflate_" data-uid="C1.C1Preview.RectangleD.Inflate*"></a>
<h4 id="C1_C1Preview_RectangleD_Inflate_C1_C1Preview_SizeD_" data-uid="C1.C1Preview.RectangleD.Inflate(C1.C1Preview.SizeD)">Inflate(SizeD)</h4>
<div class="markdown level1 summary"><p>Inflates the current <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> by a specified <a class="xref" href="C1.C1Preview.SizeD.html">SizeD</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(SizeD size)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Inflate(size As SizeD)</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.C1Preview.SizeD.html">SizeD</a></td>
      <td><span class="parametername">size</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.SizeD.html">SizeD</a> to inflate the current rectangle by.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RectangleD_Inflate_" data-uid="C1.C1Preview.RectangleD.Inflate*"></a>
<h4 id="C1_C1Preview_RectangleD_Inflate_System_Double_System_Double_" data-uid="C1.C1Preview.RectangleD.Inflate(System.Double,System.Double)">Inflate(double, double)</h4>
<div class="markdown level1 summary"><p>Inflates the current <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</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.C1Preview.RectangleD.html">RectangleD</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.C1Preview.RectangleD.html">RectangleD</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_RectangleD_Inflate_" data-uid="C1.C1Preview.RectangleD.Inflate*"></a>
<h4 id="C1_C1Preview_RectangleD_Inflate_C1_C1Preview_RectangleD_System_Double_System_Double_" data-uid="C1.C1Preview.RectangleD.Inflate(C1.C1Preview.RectangleD,System.Double,System.Double)">Inflate(RectangleD, double, double)</h4>
<div class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</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 RectangleD Inflate(RectangleD rc, double x, double y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Inflate(rc As RectangleD, x As Double, y As Double) As RectangleD</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.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</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.C1Preview.RectangleD.html">RectangleD</a></td>
      <td><p>The newly created <a class="xref" href="C1.C1Preview.RectangleD.html">RectangleD</a> structure.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
