# GrapeCity.Spreadsheet.IWorksheet.AutoFilter

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IWorksheet_AutoFilter_" data-uid="GrapeCity.Spreadsheet.IWorksheet.AutoFilter*">AutoFilter Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IWorksheet_AutoFilter_" data-uid="GrapeCity.Spreadsheet.IWorksheet.AutoFilter*"></a>
<h4 id="GrapeCity_Spreadsheet_IWorksheet_AutoFilter" data-uid="GrapeCity.Spreadsheet.IWorksheet.AutoFilter">AutoFilter</h4>
<div class="markdown level1 summary"><p>Gets an <a class="xref" href="GrapeCity.Spreadsheet.IAutoFilter.html">IAutoFilter</a> object if filtering is on.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IAutoFilter AutoFilter { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">ReadOnly Property AutoFilter As IAutoFilter</code></pre>
</div>
<h5 class="propertyValue">Property Value</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.Spreadsheet.IAutoFilter.html">IAutoFilter</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.IAutoFilter.html">IAutoFilter</a> object represents the filter of this <a class="xref" href="GrapeCity.Spreadsheet.IWorksheet.html">IWorksheet</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_IWorksheet_AutoFilter_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The property returns Nothing if filtering is off.
<p>To create an <a class="xref" href="GrapeCity.Spreadsheet.IAutoFilter.html">IAutoFilter</a> object for a worksheet, you must turn auto-filtering on for a range on the worksheet either manually or using the <a class="xref" href="GrapeCity.Spreadsheet.IRange.AutoFilter.html#GrapeCity_Spreadsheet_IRange_AutoFilter_System_Boolean_System_Boolean_">AutoFilter(bool, bool)</a> method of the <a class="xref" href="GrapeCity.Spreadsheet.IRange.html">IRange</a> object.</p>
</div>
</div>
