# C1.WPF.Extensions.Inflate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_Extensions_Inflate_" data-uid="C1.WPF.Extensions.Inflate*">Inflate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_Extensions_Inflate_" data-uid="C1.WPF.Extensions.Inflate*"></a>
<h4 id="C1_WPF_Extensions_Inflate_System_Windows_Rect__System_Double_System_Double_" data-uid="C1.WPF.Extensions.Inflate(System.Windows.Rect@,System.Double,System.Double)">Inflate(ref Rect, double, double)</h4>
<div class="markdown level1 summary"><p>Enlarges a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> structure by the specified amount.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Inflate(ref Rect r, double dx, double dy)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Inflate(ByRef r As Rect, dx As Double, dy 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.windows.rect">Rect</a></td>
      <td><span class="parametername">r</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> structure.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">dx</span></td>
      <td><p>The amount to inflate this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> 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">dy</span></td>
      <td><p>The amount to inflate this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> vertically.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_Extensions_Inflate_" data-uid="C1.WPF.Extensions.Inflate*"></a>
<h4 id="C1_WPF_Extensions_Inflate_System_Windows_Rect__System_Double_System_Double_System_Double_System_Double_" data-uid="C1.WPF.Extensions.Inflate(System.Windows.Rect@,System.Double,System.Double,System.Double,System.Double)">Inflate(ref Rect, double, double, double, double)</h4>
<div class="markdown level1 summary"><p>Enlarges a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> structure by the specified amount.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void Inflate(ref Rect r, double left, double top, double right, double bottom)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub Inflate(ByRef r As Rect, 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.windows.rect">Rect</a></td>
      <td><span class="parametername">r</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> structure.</p>
</td>
    </tr>
    <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 inflate this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> from 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 inflate this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> from 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 inflate this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> from 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 inflate this <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.rect">Rect</a> from bottom.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
