# C1.Document.C1TextSearchManager.FindStartAsync

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_C1TextSearchManager_FindStartAsync_" data-uid="C1.Document.C1TextSearchManager.FindStartAsync*">FindStartAsync Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_C1TextSearchManager_FindStartAsync_" data-uid="C1.Document.C1TextSearchManager.FindStartAsync*"></a>
<h4 id="C1_Document_C1TextSearchManager_FindStartAsync_System_Int32_C1_Document_SearchScope_C1_Document_C1FindTextParams_System_Boolean_" data-uid="C1.Document.C1TextSearchManager.FindStartAsync(System.Int32,C1.Document.SearchScope,C1.Document.C1FindTextParams,System.Boolean)">FindStartAsync(int, SearchScope, C1FindTextParams, bool)</h4>
<div class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1TextSearchManager.FindStart.html#C1_Document_C1TextSearchManager_FindStart_System_Int32_C1_Document_SearchScope_C1_Document_C1FindTextParams_">FindStart(int, SearchScope, C1FindTextParams)</a> method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task&lt;C1FoundPosition&gt; FindStartAsync(int startPageIndex, SearchScope scope, C1FindTextParams findParams, bool throwException)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindStartAsync(startPageIndex As Integer, scope As SearchScope, findParams As C1FindTextParams, throwException As Boolean) As Task(Of C1FoundPosition)</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">startPageIndex</span></td>
      <td><p>0-based index of the first page to search.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Document.SearchScope.html">SearchScope</a></td>
      <td><span class="parametername">scope</span></td>
      <td><p>The search scope.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Document.C1FindTextParams.html">C1FindTextParams</a></td>
      <td><span class="parametername">findParams</span></td>
      <td><p>The text search parameters.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">throwException</span></td>
      <td><p>Whether to throw an exception if a document access error occurred while searching.</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.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="C1.Document.C1FoundPosition.html">C1FoundPosition</a>&gt;</td>
      <td><p>Asynchronous object representing the found text position.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Document_C1TextSearchManager_FindStartAsync_" data-uid="C1.Document.C1TextSearchManager.FindStartAsync*"></a>
<h4 id="C1_Document_C1TextSearchManager_FindStartAsync_System_Int32_System_Boolean_C1_Document_C1FindTextParams_System_Boolean_" data-uid="C1.Document.C1TextSearchManager.FindStartAsync(System.Int32,System.Boolean,C1.Document.C1FindTextParams,System.Boolean)">FindStartAsync(int, bool, C1FindTextParams, bool)</h4>
<div class="markdown level1 summary"><p>Non-blocking (asynchronous) version of the <a class="xref" href="C1.Document.C1TextSearchManager.FindStart.html#C1_Document_C1TextSearchManager_FindStart_System_Int32_System_Boolean_C1_Document_C1FindTextParams_">FindStart(int, bool, C1FindTextParams)</a> method.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Task&lt;C1FoundPosition&gt; FindStartAsync(int startPageIndex, bool wholeDocument, C1FindTextParams findParams, bool throwException)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindStartAsync(startPageIndex As Integer, wholeDocument As Boolean, findParams As C1FindTextParams, throwException As Boolean) As Task(Of C1FoundPosition)</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">startPageIndex</span></td>
      <td><p>0-based index of the first page to search.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">wholeDocument</span></td>
      <td><p>Indicates whether whole document should be loaded during searching or to the first fragment found.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Document.C1FindTextParams.html">C1FindTextParams</a></td>
      <td><span class="parametername">findParams</span></td>
      <td><p>The text search parameters.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">throwException</span></td>
      <td><p>Whether to throw an exception if a document access error occurred while searching.</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.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="C1.Document.C1FoundPosition.html">C1FoundPosition</a>&gt;</td>
      <td><p>Asynchronous object representing the found text position.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
