# GrapeCity.Documents.Excel.PrintManager.UpdatePageNumberAndPageSettings

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_PrintManager_UpdatePageNumberAndPageSettings_" data-uid="GrapeCity.Documents.Excel.PrintManager.UpdatePageNumberAndPageSettings*">UpdatePageNumberAndPageSettings Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_PrintManager_UpdatePageNumberAndPageSettings_" data-uid="GrapeCity.Documents.Excel.PrintManager.UpdatePageNumberAndPageSettings*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_UpdatePageNumberAndPageSettings_System_Collections_Generic_IList_GrapeCity_Documents_Excel_PageInfo__" data-uid="GrapeCity.Documents.Excel.PrintManager.UpdatePageNumberAndPageSettings(System.Collections.Generic.IList{GrapeCity.Documents.Excel.PageInfo})">UpdatePageNumberAndPageSettings(IList&lt;PageInfo&gt;)</h4>
<div class="markdown level1 summary"><p>Update the page number, page count and page settings of each page. When the page collection changes (add, delete, move), you need to call this method to update the pages information.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UpdatePageNumberAndPageSettings(IList&lt;PageInfo&gt; pages)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UpdatePageNumberAndPageSettings(pages As IList(Of PageInfo))</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.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.PageInfo.html">PageInfo</a>&gt;</td>
      <td><span class="parametername">pages</span></td>
      <td><p>The page collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_PrintManager_UpdatePageNumberAndPageSettings_" data-uid="GrapeCity.Documents.Excel.PrintManager.UpdatePageNumberAndPageSettings*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_UpdatePageNumberAndPageSettings_System_Collections_Generic_IList_GrapeCity_Documents_Excel_PageInfo__System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Excel.PrintManager.UpdatePageNumberAndPageSettings(System.Collections.Generic.IList{GrapeCity.Documents.Excel.PageInfo},System.Int32,System.Int32)">UpdatePageNumberAndPageSettings(IList&lt;PageInfo&gt;, int, int)</h4>
<div class="markdown level1 summary"><p>Update the page number, page count and page settings of each page. When the page collection changes (add, delete, move), you need to call this method to update the pages information.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void UpdatePageNumberAndPageSettings(IList&lt;PageInfo&gt; pages, int firstPageNumber, int pageCount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub UpdatePageNumberAndPageSettings(pages As IList(Of PageInfo), firstPageNumber As Integer, pageCount As 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="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.PageInfo.html">PageInfo</a>&gt;</td>
      <td><span class="parametername">pages</span></td>
      <td><p>The page collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">firstPageNumber</span></td>
      <td><p>The page number of the first page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageCount</span></td>
      <td><p>The total number of pages.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
