# GrapeCity.Documents.Excel.PrintManager.GetPaginationInfo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_PrintManager_GetPaginationInfo_" data-uid="GrapeCity.Documents.Excel.PrintManager.GetPaginationInfo*">GetPaginationInfo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_PrintManager_GetPaginationInfo_" data-uid="GrapeCity.Documents.Excel.PrintManager.GetPaginationInfo*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_GetPaginationInfo_GrapeCity_Documents_Excel_IWorksheet_GrapeCity_Documents_Excel_PaginationOrientation_" data-uid="GrapeCity.Documents.Excel.PrintManager.GetPaginationInfo(GrapeCity.Documents.Excel.IWorksheet,GrapeCity.Documents.Excel.PaginationOrientation)">GetPaginationInfo(IWorksheet, PaginationOrientation)</h4>
<div class="markdown level1 summary"><p>Returns an array of row or column indexes which represents the page boundaries for vertical or horizontal paging.
The Pagination is based on the settings in the PageSetup of the current worksheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IList&lt;int&gt; GetPaginationInfo(IWorksheet worksheet, PaginationOrientation orientation)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPaginationInfo(worksheet As IWorksheet, orientation As PaginationOrientation) As IList(Of Integer)</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="GrapeCity.Documents.Excel.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>The worksheet object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PaginationOrientation.html">PaginationOrientation</a></td>
      <td><span class="parametername">orientation</span></td>
      <td><p>The orientation of pagination.</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.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_PrintManager_GetPaginationInfo_" data-uid="GrapeCity.Documents.Excel.PrintManager.GetPaginationInfo*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_GetPaginationInfo_GrapeCity_Documents_Excel_IWorksheet_GrapeCity_Documents_Excel_PaginationOrientation_System_Collections_Generic_IList_GrapeCity_Documents_Excel_IRange__System_Collections_Generic_IList_GrapeCity_Documents_Excel_RepeatSetting__" data-uid="GrapeCity.Documents.Excel.PrintManager.GetPaginationInfo(GrapeCity.Documents.Excel.IWorksheet,GrapeCity.Documents.Excel.PaginationOrientation,System.Collections.Generic.IList{GrapeCity.Documents.Excel.IRange},System.Collections.Generic.IList{GrapeCity.Documents.Excel.RepeatSetting})">GetPaginationInfo(IWorksheet, PaginationOrientation, IList&lt;IRange&gt;, IList&lt;RepeatSetting&gt;)</h4>
<div class="markdown level1 summary"><p>Returns an array of row or column indexes which represents the page boundaries for vertical or horizontal paging.
The Pagination is based on the settings in the PageSetup of the current worksheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IList&lt;int&gt; GetPaginationInfo(IWorksheet worksheet, PaginationOrientation orientation, IList&lt;IRange&gt; keepTogetherRanges, IList&lt;RepeatSetting&gt; repeatSettings)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPaginationInfo(worksheet As IWorksheet, orientation As PaginationOrientation, keepTogetherRanges As IList(Of IRange), repeatSettings As IList(Of RepeatSetting)) As IList(Of Integer)</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="GrapeCity.Documents.Excel.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>The worksheet object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PaginationOrientation.html">PaginationOrientation</a></td>
      <td><span class="parametername">orientation</span></td>
      <td><p>The orientation of pagination.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.IRange.html">IRange</a>&gt;</td>
      <td><span class="parametername">keepTogetherRanges</span></td>
      <td><p>The collection of ranges that need to keep together.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.RepeatSetting.html">RepeatSetting</a>&gt;</td>
      <td><span class="parametername">repeatSettings</span></td>
      <td><p>The collection of repeat settings for a Range.</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.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>&gt;</td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
