# C1.Win.FlexGrid.SearchAppliedEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_SearchAppliedEventArgs__ctor_" data-uid="C1.Win.FlexGrid.SearchAppliedEventArgs.#ctor*">SearchAppliedEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_SearchAppliedEventArgs__ctor_" data-uid="C1.Win.FlexGrid.SearchAppliedEventArgs.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_SearchAppliedEventArgs__ctor_System_String_System_Boolean_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.Win.FlexGrid.SearchAppliedEventArgs.#ctor(System.String,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">SearchAppliedEventArgs(string, bool, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the SearchAppliedEventArgs class.
This constructor is obsolete. Call constructor with HighlightMode argument instead.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[Obsolete(&quot;Call constructor with HighlightMode argument instead.&quot;)]
public SearchAppliedEventArgs(string text, bool highlight, bool filter, bool onlyVisibleColumns, bool onlyVisibleRows)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;Obsolete(&quot;Call constructor with HighlightMode argument instead.&quot;)&gt;
Public Sub New(text As String, highlight As Boolean, filter As Boolean, onlyVisibleColumns As Boolean, onlyVisibleRows As Boolean)</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">text</span></td>
      <td><p>The words 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">highlight</span></td>
      <td><p>Determines whether search results are highlighted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">filter</span></td>
      <td><p>Determines whether the search results are filtered.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">onlyVisibleColumns</span></td>
      <td><p>Determines whether to search only in visible columns.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">onlyVisibleRows</span></td>
      <td><p>Determines whether to search only in visible rows.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_SearchAppliedEventArgs__ctor_" data-uid="C1.Win.FlexGrid.SearchAppliedEventArgs.#ctor*"></a>
<h4 id="C1_Win_FlexGrid_SearchAppliedEventArgs__ctor_System_String_C1_Win_FlexGrid_SearchHighlightMode_System_Boolean_System_Boolean_System_Boolean_" data-uid="C1.Win.FlexGrid.SearchAppliedEventArgs.#ctor(System.String,C1.Win.FlexGrid.SearchHighlightMode,System.Boolean,System.Boolean,System.Boolean)">SearchAppliedEventArgs(string, SearchHighlightMode, bool, bool, bool)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the SearchAppliedEventArgs class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public SearchAppliedEventArgs(string text, SearchHighlightMode highlightMode, bool filter, bool onlyVisibleColumns, bool onlyVisibleRows)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(text As String, highlightMode As SearchHighlightMode, filter As Boolean, onlyVisibleColumns As Boolean, onlyVisibleRows As Boolean)</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">text</span></td>
      <td><p>The words to search.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.SearchHighlightMode.html">SearchHighlightMode</a></td>
      <td><span class="parametername">highlightMode</span></td>
      <td><p>Determines how to search results are highlighted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">filter</span></td>
      <td><p>Determines whether the search results are filtered.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">onlyVisibleColumns</span></td>
      <td><p>Determines whether to search only in visible columns.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">onlyVisibleRows</span></td>
      <td><p>Determines whether to search only in visible rows.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
