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

# AutoFilterModel

## Overview

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

Represents auto filter model.

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

## Accessor Methods

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `AutoFilterSortStateModel` | `AutoFilterSortStateModel` | Read | Gets the auto filter sort state model. |

## Methods

| Signature | Description |
|-----------|-------------|
| `AutoFilterSortStateModel()` → `AutoFilterSortStateModel` | Gets the sort state. |
| `AutoFilterSortStateModel()` → `AutoFilterSortStateModel` | Calls AutoFilterSortStateModel on this AutoFilterModel instance. |
| `GetRange()` → `std::string` | Gets or sets the range. |
| `SetRange(value: std::string)` | Sets the range value. |
| `SetRange(value: std::string)` | Sets the range value. |
| `GetFilterColumns()` → `std::vector<FilterColumnModel>` | Gets the filter columns. |
| `GetFilterColumns()` → `std::vector<FilterColumnModel>` | Returns the filter columns. |
| `GetSortState()` → `AutoFilterSortStateModel` | Gets the sort state. |
| `GetSortState()` → `AutoFilterSortStateModel` | Returns the sort state. |
| `Clear()` | Clears the current state. |
| `HasStoredState()` → `bool` | Performs has stored state. true if the condition is met; otherwise, false. |

## See Also

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