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

# ConditionalFormattingCollection

## Overview

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

Represents a collection of conditional formatting objects.

This class declares 5 methods for ConditionalFormattingCollection objects in C++ programs.
Available methods include: `Add`, `GetCount`, `GetNextPriority`, `RemoveArea`, `RemoveAt`.
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. The number of conditional formatting objects. |
| `Add()` → `int` | Adds the specified item. The zero-based index of the added item. |
| `RemoveAt(index: int)` | Removes the specified item. The zero-based index. |
| `RemoveArea(startRow: int, startColumn: int, totalRows: int, totalColumns: int)` | Removes the specified item. The start row. The start column. The total number of rows. The total number of columns. |
| `GetNextPriority(collections: std::vector<Core::ConditionalFormattingModel>)` → `int` | Gets the next priority for the specified collections. The collection of conditional formatting models. The next priority value. |

## See Also

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