# GrapeCity.Viewer.Common.IHistoryApi

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Viewer_Common_IHistoryApi" data-uid="GrapeCity.Viewer.Common.IHistoryApi" class="text-break">IHistoryApi Interface
</h1>
  <div class="markdown level0 summary"><p>Defines the interface for interacting with the HistoryService, allowing navigation and management of the page view history.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Viewer.Common.html">GrapeCity.Viewer.Common</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Viewer.Common.dll</h6>
  <h5 id="GrapeCity_Viewer_Common_IHistoryApi_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IHistoryApi</code></pre>
  </div>
  <h5 id="GrapeCity_Viewer_Common_IHistoryApi_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This interface provides methods for navigating through the history of viewed pages, as well as retrieving information about the history state,
such as the total number of pages viewed and the current position within the history. It also allows for clearing the history.</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Viewer_Common_IHistoryApi_Count" data-uid="GrapeCity.Viewer.Common.IHistoryApi.Count">
          <a class="xref" href="GrapeCity.Viewer.Common.IHistoryApi.Count.html#GrapeCity_Viewer_Common_IHistoryApi_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of page views stored in the history.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Viewer_Common_IHistoryApi_Position" data-uid="GrapeCity.Viewer.Common.IHistoryApi.Position">
          <a class="xref" href="GrapeCity.Viewer.Common.IHistoryApi.Position.html#GrapeCity_Viewer_Common_IHistoryApi_Position">Position</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current position within the navigation history, indicating the current page view.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Viewer_Common_IHistoryApi_Clear" data-uid="GrapeCity.Viewer.Common.IHistoryApi.Clear">
          <a class="xref" href="GrapeCity.Viewer.Common.IHistoryApi.Clear.html#GrapeCity_Viewer_Common_IHistoryApi_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears all page views from the history, resetting the history state.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Viewer_Common_IHistoryApi_MoveNext" data-uid="GrapeCity.Viewer.Common.IHistoryApi.MoveNext">
          <a class="xref" href="GrapeCity.Viewer.Common.IHistoryApi.MoveNext.html#GrapeCity_Viewer_Common_IHistoryApi_MoveNext">MoveNext()</a>
        </td>
        <td class="markdown level1 summary"><p>Navigates forward to the next page view in the history, if available.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Viewer_Common_IHistoryApi_MovePrev" data-uid="GrapeCity.Viewer.Common.IHistoryApi.MovePrev">
          <a class="xref" href="GrapeCity.Viewer.Common.IHistoryApi.MovePrev.html#GrapeCity_Viewer_Common_IHistoryApi_MovePrev">MovePrev()</a>
        </td>
        <td class="markdown level1 summary"><p>Navigates backward to the previous page view in the history, if available.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
