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

# AutoFilterSupport

## Overview

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

Internal helper methods for auto-filter operations.

This class declares 10 methods for AutoFilterSupport objects in C++ programs.
Available methods include: `AutoFilterSupport`, `CompareFilterColumns`, `NormalizeOptionalRange`, `NormalizeOptionalText`, `NormalizeRequiredRange`, `NormalizeText`, `ParseOperatorOrDefault`, `ToOperatorName`, `TryNormalizeRange`, `TryParseOperator`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `AutoFilterSupport()` | Calls AutoFilterSupport on this AutoFilterSupport instance. |
| `NormalizeOptionalRange(value: std::string_view, parameterName: std::string_view)` → `std::string` | Normalizes an optional range string, returning empty if blank. Throws CellsException if non-blank but not a valid range. |
| `NormalizeRequiredRange(value: std::string_view, parameterName: std::string_view)` → `std::string` | Normalizes a required range string, throwing if blank or invalid. |
| `TryNormalizeRange(value: std::string_view, normalized: std::string)` → `bool` | Attempts to normalize a range string. Returns true on success. |
| `NormalizeOptionalText(value: std::string_view)` → `std::string` | Normalizes optional text by trimming; returns empty if blank. |
| `NormalizeText(value: std::string_view, parameterName: std::string_view)` → `std::string` | Validates that a text value is non-null. Throws ArgumentNullException equivalent if the value is null. Returns the value as a string. |
| `ParseOperatorOrDefault(value: std::string_view)` → `FilterOperatorType` | Parses an operator string, defaulting to Equal on blank input. |
| `TryParseOperator(value: std::string_view, operatorType: FilterOperatorType)` → `bool` | Parses an operator string, returning false on unrecognized values. |
| `ToOperatorName(operatorType: FilterOperatorType)` → `std::string` | Converts a FilterOperatorType to its XML attribute name, or null/empty for Equal. |
| `CompareFilterColumns(left: Core::FilterColumnModel, right: Core::FilterColumnModel)` → `int` | Compares two filter columns by column index. |

## See Also

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