# GrapeCity.Spreadsheet.IRange.Offset

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IRange_Offset_" data-uid="GrapeCity.Spreadsheet.IRange.Offset*">Offset Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IRange_Offset_" data-uid="GrapeCity.Spreadsheet.IRange.Offset*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_Offset_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.IRange.Offset(System.Int32,System.Int32)">Offset(int, int)</h4>
<div class="markdown level1 summary"><p>Returns a <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> object that represents a translated range from the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IRange Offset(int rowOffset = 0, int columnOffset = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Offset(Optional rowOffset As Integer = 0, Optional columnOffset As Integer = 0) As IRange</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.int32">int</a></td>
      <td><span class="parametername">rowOffset</span></td>
      <td><p>The number of rows (positive, negative, or 0 (zero)) by which the range is to be offset. Positive values are offset downward, and negative values are offset upward. The default value is 0.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnOffset</span></td>
      <td><p>The number of columns (positive, negative, or 0 (zero)) by which the range is to be offset. Positive values are offset to the right, and negative values are offset to the left. The default value is 0.</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="GrapeCity.Spreadsheet.IRange.html">IRange</a></td>
      <td><p>IRange.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
