# FarPoint.Win.Spread.FpSpread.SearchWithDialog

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_FpSpread_SearchWithDialog_" data-uid="FarPoint.Win.Spread.FpSpread.SearchWithDialog*">SearchWithDialog Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_FpSpread_SearchWithDialog_" data-uid="FarPoint.Win.Spread.FpSpread.SearchWithDialog*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_SearchWithDialog_System_String_" data-uid="FarPoint.Win.Spread.FpSpread.SearchWithDialog(System.String)">SearchWithDialog(string)</h4>
<div class="markdown level1 summary"><p>Searches the text in the cells of the active sheet for the search string<br>
with the default criteria using a provided search dialog.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SearchWithDialog(string searchString)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SearchWithDialog(searchString As String)</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>String for which to search</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_FpSpread_SearchWithDialog_" data-uid="FarPoint.Win.Spread.FpSpread.SearchWithDialog*"></a>
<h4 id="FarPoint_Win_Spread_FpSpread_SearchWithDialog_System_Int32_System_String_System_Boolean_System_Boolean_System_Boolean_System_Boolean_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.FpSpread.SearchWithDialog(System.Int32,System.String,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Int32,System.Int32)">SearchWithDialog(int, string, bool, bool, bool, bool, int, int)</h4>
<div class="markdown level1 summary"><p>Searches the text in the cells of the specified sheet for the specified string<br>
with the specified criteria using a provided search dialog.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SearchWithDialog(int sheetIndex, string searchString, bool caseSensitive, bool exactMatch, bool alternateSearch, bool useWildcards, int startRowIndex, int startColumnIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SearchWithDialog(sheetIndex As Integer, searchString As String, caseSensitive As Boolean, exactMatch As Boolean, alternateSearch As Boolean, useWildcards As Boolean, startRowIndex As Integer, startColumnIndex 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.int32">int</a></td>
      <td><span class="parametername">sheetIndex</span></td>
      <td><p>Sheet index on which to search</p>
</td>
    </tr>
    <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>String for which 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">caseSensitive</span></td>
      <td><p>Whether the search considers the case of the letters in the search string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">exactMatch</span></td>
      <td><p>Whether the search considers only an exact match</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">alternateSearch</span></td>
      <td><p>Whether the search goes by alternate coordinates of column, row (instead of row, column)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">useWildcards</span></td>
      <td><p>Whether the search considers wildcard characters (*, ?) in the search string</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startRowIndex</span></td>
      <td><p>Row index at which to start</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">startColumnIndex</span></td>
      <td><p>Column index at which to start</p>
</td>
    </tr>
  </tbody>
</table>
</div>
