# C1.C1Excel.XLSheet.GetRangeToRepeat

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Excel_XLSheet_GetRangeToRepeat_" data-uid="C1.C1Excel.XLSheet.GetRangeToRepeat*">GetRangeToRepeat Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Excel_XLSheet_GetRangeToRepeat_" data-uid="C1.C1Excel.XLSheet.GetRangeToRepeat*"></a>
<h4 id="C1_C1Excel_XLSheet_GetRangeToRepeat_System_Int32__System_Int32__System_Int32__System_Int32__" data-uid="C1.C1Excel.XLSheet.GetRangeToRepeat(System.Int32@,System.Int32@,System.Int32@,System.Int32@)">GetRangeToRepeat(out int, out int, out int, out int)</h4>
<div class="markdown level1 summary"><p>Returns a value indicating whether print titles are specified for this worksheet.
(Print titles are rows repeated at top, and columns repeated at left of each page
when the sheet is printed.)
Output parameters indicate the indexes of title rows and columns.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool GetRangeToRepeat(out int rowFrom, out int rowTo, out int colFrom, out int colTo)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetRangeToRepeat(ByRef rowFrom As Integer, ByRef rowTo As Integer, ByRef colFrom As Integer, ByRef colTo As Integer) As Boolean</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">rowFrom</span></td>
      <td><p>OUT: index of the first title row (repeated at top).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowTo</span></td>
      <td><p>OUT: index of the last title row (repeated at top).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colFrom</span></td>
      <td><p>OUT: index of the first title column (repeated at left).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">colTo</span></td>
      <td><p>OUT: index of the last title column (repeated at left).</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if title rows or columns are specified for this sheet, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
