# GrapeCity.Documents.Excel.IRange.Find

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_IRange_Find_" data-uid="GrapeCity.Documents.Excel.IRange.Find*">Find Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_IRange_Find_" data-uid="GrapeCity.Documents.Excel.IRange.Find*"></a>
<h4 id="GrapeCity_Documents_Excel_IRange_Find_System_Object_GrapeCity_Documents_Excel_IRange_GrapeCity_Documents_Excel_FindOptions_" data-uid="GrapeCity.Documents.Excel.IRange.Find(System.Object,GrapeCity.Documents.Excel.IRange,GrapeCity.Documents.Excel.FindOptions)">Find(object, IRange, FindOptions)</h4>
<div class="markdown level1 summary"><p>Finds specific information in a range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IRange Find(object what, IRange after = null, FindOptions options = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Find(what As Object, Optional after As IRange = Nothing, Optional options As FindOptions = Nothing) As IRange</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.object">object</a></td>
      <td><span class="parametername">what</span></td>
      <td><p>The data to search for. Can be a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a>,
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.datetime">DateTime</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.timespan">TimeSpan</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> or <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">after</span></td>
      <td><p>The cell after which you want the search to begin.
This corresponds to the position of the active cell when a search is done from the user interface.
Notice that After must be a single cell in the range.
Remember that the search begins after this cell;
the specified cell isn't searched unless your code wraps back around to this cell.
If you do not specify this argument, the search starts at the cell in the upper-left corner of the range
when <a class="xref" href="GrapeCity.Documents.Excel.FindOptions.SearchDirection.html#GrapeCity_Documents_Excel_FindOptions_SearchDirection">SearchDirection</a> is <a class="xref" href="GrapeCity.Documents.Excel.SearchDirection.html#GrapeCity_Documents_Excel_SearchDirection_Next">Next</a>, or
at the cell in the bottom-right corner of the range
when <a class="xref" href="GrapeCity.Documents.Excel.FindOptions.SearchDirection.html#GrapeCity_Documents_Excel_FindOptions_SearchDirection">SearchDirection</a> is <a class="xref" href="GrapeCity.Documents.Excel.SearchDirection.html#GrapeCity_Documents_Excel_SearchDirection_Previous">Previous</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.FindOptions.html">FindOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>The find options.</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.Documents.Excel.IRange.html">IRange</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Excel.IRange.html">IRange</a> object that represents the first cell where that information is found.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
