# GrapeCity.Spreadsheet.IAutoFilterOwner.CreateAutoFilter

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IAutoFilterOwner_CreateAutoFilter_" data-uid="GrapeCity.Spreadsheet.IAutoFilterOwner.CreateAutoFilter*">CreateAutoFilter Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IAutoFilterOwner_CreateAutoFilter_" data-uid="GrapeCity.Spreadsheet.IAutoFilterOwner.CreateAutoFilter*"></a>
<h4 id="GrapeCity_Spreadsheet_IAutoFilterOwner_CreateAutoFilter_GrapeCity_Spreadsheet_Worksheet_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.IAutoFilterOwner.CreateAutoFilter(GrapeCity.Spreadsheet.Worksheet,System.Int32,System.Int32,System.Int32,System.Int32)">CreateAutoFilter(Worksheet, int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Creates the automatic filter.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">AutoFilter CreateAutoFilter(Worksheet worksheet, int row, int column, int row2, int column2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function CreateAutoFilter(worksheet As Worksheet, row As Integer, column As Integer, row2 As Integer, column2 As Integer) As AutoFilter</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><span class="xref">Worksheet</span></td>
      <td><span class="parametername">worksheet</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the top row index of cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the left column index of cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td><p>An integer value indicates the bottom row index of cell range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column2</span></td>
      <td><p>An integer value indicates the right column index of cell range.</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><span class="xref">AutoFilter</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.IAutoFilterOwner.AutoFilter.html#GrapeCity_Spreadsheet_IAutoFilterOwner_AutoFilter">AutoFilter</a> object represents the created filter. <code>null</code> if the data is invalid.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
