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

# AutoFilterSortConditionCollection

## Overview

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

Represents a collection of auto filter sort condition objects.

This class declares 7 methods for AutoFilterSortConditionCollection objects in C++ programs.
Available methods include: `Add`, `Clear`, `GetCount`, `GetEnumerator`, `RemoveAt`, `begin`, `end`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetCount()` → `int` | Gets the number of items. |
| `Add(reference: std::string_view)` → `int` | Adds the specified item. The reference. The zero-based index of the added item. |
| `RemoveAt(index: int)` | Removes the specified item. The zero-based index. |
| `Clear()` | Clears the current state. |
| `GetEnumerator()` → `std::vector<AutoFilterSortCondition>` | Returns a snapshot vector that iterates through the collection. A vector of sort conditions that can be used to iterate through the collection. |
| `begin()` → `Iterator` | Returns an iterator to the beginning. |
| `end()` → `Iterator` | Returns an iterator to the end. |

## See Also

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