# GrapeCity.ActiveReports.Core.Document.DocumentBase-1.Find

## Content

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



<h1 id="GrapeCity_ActiveReports_Core_Document_DocumentBase_1_Find_" data-uid="GrapeCity.ActiveReports.Core.Document.DocumentBase`1.Find*">Find Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Core_Document_DocumentBase_1_Find_" data-uid="GrapeCity.ActiveReports.Core.Document.DocumentBase`1.Find*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Document_DocumentBase_1_Find_System_String_System_Int32__" data-uid="GrapeCity.ActiveReports.Core.Document.DocumentBase`1.Find(System.String,System.Int32@)">Find(string, ref int)</h4>
<div class="markdown level1 summary"><p>Search for the specified character string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Find(string searchString, ref int currentIndex)</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.string">string</a></td>
      <td><span class="parametername">searchString</span></td>
      <td><p>The string you are searching for</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">currentIndex</span></td>
      <td><p>The page's collection zero based index</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></td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Core_Document_DocumentBase_1_Find_" data-uid="GrapeCity.ActiveReports.Core.Document.DocumentBase`1.Find*"></a>
<h4 id="GrapeCity_ActiveReports_Core_Document_DocumentBase_1_Find_System_String_GrapeCity_ActiveReports_Core_Document_FindOptions_System_Int32__System_Single__" data-uid="GrapeCity.ActiveReports.Core.Document.DocumentBase`1.Find(System.String,GrapeCity.ActiveReports.Core.Document.FindOptions,System.Int32@,System.Single@)">Find(string, FindOptions, ref int, ref float)</h4>
<div class="markdown level1 summary"><p>Searches the document page for the specified string.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public FindResult Find(string searchString, FindOptions options, ref int currentIndex, ref float currentOffset)</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.string">string</a></td>
      <td><span class="parametername">searchString</span></td>
      <td><p>The string you are searching for</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.ActiveReports.Core.Document.FindOptions.html">FindOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>which direction you are searching</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">currentIndex</span></td>
      <td><p>The page's collection zero based index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">currentOffset</span></td>
      <td><p>The current offset into the text string</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="GrapeCity.ActiveReports.Document.Section.FindResult.html">FindResult</a></td>
      <td><p>For a list of valid values, see here: <a class="xref" href="GrapeCity.ActiveReports.Document.Section.FindResult.html">FindResult</a></p>
</td>
    </tr>
  </tbody>
</table>
</div>
