# FarPoint.Web.Spread.AutoFilter.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_AutoFilter__ctor_" data-uid="FarPoint.Web.Spread.AutoFilter.#ctor*">AutoFilter Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_AutoFilter__ctor_" data-uid="FarPoint.Web.Spread.AutoFilter.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_AutoFilter__ctor" data-uid="FarPoint.Web.Spread.AutoFilter.#ctor">AutoFilter()</h4>
<div class="markdown level1 summary"><p>Creates an AutoFilter class object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AutoFilter()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_AutoFilter__ctor_" data-uid="FarPoint.Web.Spread.AutoFilter.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_AutoFilter__ctor_System_Boolean_FarPoint_Web_Spread_FilterMatchingMode_FarPoint_Web_Spread_FilterMatchingSource_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.AutoFilter.#ctor(System.Boolean,FarPoint.Web.Spread.FilterMatchingMode,FarPoint.Web.Spread.FilterMatchingSource,System.Int32,System.Int32,System.Int32)">AutoFilter(bool, FilterMatchingMode, FilterMatchingSource, int, int, int)</h4>
<div class="markdown level1 summary"><p>Sets the filter function of the multi-column combo box cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public AutoFilter(bool enabled, FilterMatchingMode matchingMode, FilterMatchingSource matchingSource, int maxFilteredItem, int minPrefixLength, int interval)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(enabled As Boolean, matchingMode As FilterMatchingMode, matchingSource As FilterMatchingSource, maxFilteredItem As Integer, minPrefixLength As Integer, interval 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.boolean">bool</a></td>
      <td><span class="parametername">enabled</span></td>
      <td><p>Specifies whether to enable the automatic filter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.FilterMatchingMode.html">FilterMatchingMode</a></td>
      <td><span class="parametername">matchingMode</span></td>
      <td><p>Specifies the match methods used in the filter.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.FilterMatchingSource.html">FilterMatchingSource</a></td>
      <td><span class="parametername">matchingSource</span></td>
      <td><p>Specifies the data column in the combo box to search for a match.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">maxFilteredItem</span></td>
      <td><p>Sets the millisecond time until the start of the filtering operation.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">minPrefixLength</span></td>
      <td><p>Sets the minimum number of characters to start the filtering operation</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">interval</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
