# C1.Document.Utils.DeflateHalfLine

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_Utils_DeflateHalfLine_" data-uid="C1.Document.Utils.DeflateHalfLine*">DeflateHalfLine Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_Utils_DeflateHalfLine_" data-uid="C1.Document.Utils.DeflateHalfLine*"></a>
<h4 id="C1_Document_Utils_DeflateHalfLine_C1_Interop_Rect_System_Double_System_Double_System_Double_System_Double_" data-uid="C1.Document.Utils.DeflateHalfLine(C1.Interop.Rect,System.Double,System.Double,System.Double,System.Double)">DeflateHalfLine(Rect, double, double, double, double)</h4>
<div class="markdown level1 summary"><p>Substracts half of <code class="paramref">left</code>, <code class="paramref">top</code> etc from the appropriate edge of the <code class="paramref">rect</code>.</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 DeflateHalfLine(Rect rect, double left, double top, double right, double bottom)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function DeflateHalfLine(rect As Rect, 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="C1.Interop.Rect.html">Rect</a></td>
      <td><span class="parametername">rect</span></td>
      <td></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></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></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></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></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.Interop.Rect.html">Rect</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
