# C1.Win.Interop.Rect.Offset

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_Interop_Rect_Offset_" data-uid="C1.Win.Interop.Rect.Offset*">Offset Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_Interop_Rect_Offset_" data-uid="C1.Win.Interop.Rect.Offset*"></a>
<h4 id="C1_Win_Interop_Rect_Offset_System_Double_System_Double_" data-uid="C1.Win.Interop.Rect.Offset(System.Double,System.Double)">Offset(double, double)</h4>
<div class="markdown level1 summary"><p>Offsets the location of 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 Offset(double x, double y)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Offset(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 horizontal offset to apply.</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 vertical offset to apply.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Interop_Rect_Offset_" data-uid="C1.Win.Interop.Rect.Offset*"></a>
<h4 id="C1_Win_Interop_Rect_Offset_C1_Win_Interop_Point_" data-uid="C1.Win.Interop.Rect.Offset(C1.Win.Interop.Point)">Offset(Point)</h4>
<div class="markdown level1 summary"><p>Offsets the location of the current <a class="xref" href="C1.Win.Interop.Rect.html">Rect</a> by horizontal and vertical amounts specified by a <a class="xref" href="C1.Win.Interop.Point.html">Point</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 Offset(Point pt)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Offset(pt As Point)</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.Point.html">Point</a></td>
      <td><span class="parametername">pt</span></td>
      <td><p>The <a class="xref" href="C1.Win.Interop.Point.html">Point</a> specifying the horizontal and vertical offsets to apply.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_Interop_Rect_Offset_" data-uid="C1.Win.Interop.Rect.Offset*"></a>
<h4 id="C1_Win_Interop_Rect_Offset_C1_Win_Interop_Rect_C1_Win_Interop_Point_" data-uid="C1.Win.Interop.Rect.Offset(C1.Win.Interop.Rect,C1.Win.Interop.Point)">Offset(Rect, Point)</h4>
<div class="markdown level1 summary"><p>Adjusts the location of this rectangle 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 Rect Offset(Rect r, Point offset)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Offset(r As Rect, offset As Point) 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">r</span></td>
      <td><p>The rectangle to adjust.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.Interop.Point.html">Point</a></td>
      <td><span class="parametername">offset</span></td>
      <td><p>Amount to offset the location.</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 adjusted rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
