---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/autofilter
---

# AutoFilter

## Overview

`AutoFilter` is a class in Aspose.Cells FOSS for C++.

Represents auto filter.

This class declares 5 methods for AutoFilter objects in C++ programs.
Available methods include: `Clear`, `GetFilterColumns`, `GetRange`, `GetSortState`, `SetRange`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetRange()` → `std::string` | Gets or sets the range. |
| `SetRange(value: std::string)` | Sets the range value. |
| `GetFilterColumns()` → `FilterColumnCollection` | Gets the filter columns. |
| `GetSortState()` → `AutoFilterSortState` | Gets the sort state. |
| `Clear()` | Clears the current state. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)