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

# FormatCondition

## Overview

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

Represents format condition.

This class declares 55 methods for FormatCondition objects in C++ programs.
Available methods include: `GetAbove`, `GetBarColor`, `GetBarLength`, `GetColorScaleCount`, `GetDirection`, `GetDuplicate`, `GetFormula`, `GetFormula1`, `GetFormula2`, `GetIconSetType`, `GetMaxColor`, `GetMidColor`, and 43 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetType()` → `FormatConditionType` | Gets or sets the type. |
| `SetType(value: FormatConditionType)` | Sets the type value. |
| `GetOperator()` → `OperatorType` | Gets or sets the operator. |
| `SetOperator(value: OperatorType)` | Sets the operator value. |
| `GetFormula1()` → `std::string` | Gets or sets the formula1. |
| `SetFormula1(value: std::string)` | Sets the formula1 value. |
| `GetFormula2()` → `std::string` | Gets or sets the formula2. |
| `SetFormula2(value: std::string)` | Sets the formula2 value. |
| `GetFormula()` → `std::string` | Gets or sets the formula. |
| `SetFormula(value: std::string)` | Sets the formula value. |
| `GetTimePeriod()` → `std::string` | Gets or sets the time period. |
| `SetTimePeriod(value: std::string)` | Sets the time period value. |
| `GetDuplicate()` → `bool` | Gets or sets a value indicating whether duplicate. |
| `SetDuplicate(value: bool)` | Sets the duplicate value. |
| `GetTop()` → `bool` | Gets or sets a value indicating whether top. |
| `SetTop(value: bool)` | Sets the top value. |
| `GetPercent()` → `bool` | Gets or sets a value indicating whether percent. |
| `SetPercent(value: bool)` | Sets the percent value. |
| `GetRank()` → `int` | Gets or sets the rank. |
| `SetRank(value: int)` | Sets the rank value. |
| `GetAbove()` → `bool` | Gets or sets a value indicating whether above. |
| `SetAbove(value: bool)` | Sets the above value. |
| `GetStandardDeviation()` → `int` | Gets or sets the standard deviation. |
| `SetStandardDeviation(value: int)` | Sets the standard deviation value. |
| `GetColorScaleCount()` → `int` | Gets or sets the color scale count. |
| `SetColorScaleCount(value: int)` | Sets the color scale count value. |
| `GetMinColor()` → `Color` | Gets or sets the min color. |
| `SetMinColor(value: Color)` | Sets the min color value. |
| `GetMidColor()` → `Color` | Gets or sets the mid color. |
| `SetMidColor(value: Color)` | Sets the mid color value. |
| `GetMaxColor()` → `Color` | Gets or sets the max color. |
| `SetMaxColor(value: Color)` | Sets the max color value. |
| `GetBarColor()` → `Color` | Gets or sets the bar color. |
| `SetBarColor(value: Color)` | Sets the bar color value. |
| `GetNegativeBarColor()` → `Color` | Gets or sets the negative bar color. |
| `SetNegativeBarColor(value: Color)` | Sets the negative bar color value. |
| `GetShowBorder()` → `bool` | Gets or sets a value indicating whether show border. |
| `SetShowBorder(value: bool)` | Sets the show border value. |
| `GetDirection()` → `std::string` | Gets or sets the direction. |
| `SetDirection(value: std::string)` | Sets the direction value. |
| `GetBarLength()` → `std::string` | Gets or sets the bar length. |
| `SetBarLength(value: std::string)` | Sets the bar length value. |
| `GetIconSetType()` → `std::string` | Gets or sets the icon set type. |
| `SetIconSetType(value: std::string)` | Sets the icon set type value. |
| `GetReverseIcons()` → `bool` | Gets or sets a value indicating whether reverse icons. |
| `SetReverseIcons(value: bool)` | Sets the reverse icons value. |
| `GetShowIconOnly()` → `bool` | Gets or sets a value indicating whether show icon only. |
| `SetShowIconOnly(value: bool)` | Sets the show icon only value. |
| `GetPriority()` → `int` | Gets or sets the priority. |
| `SetPriority(value: int)` | Sets the priority value. |
| `GetStopIfTrue()` → `bool` | Gets or sets a value indicating whether stop if true. |
| `SetStopIfTrue(value: bool)` | Sets the stop if true value. |
| `GetStyle()` → `Style` | Gets or sets the style. |
| `SetStyle(value: Style)` | Sets the style value. |
| `Remove()` | Removes the specified item. |

## See Also

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