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

# Validation

## Overview

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

Represents validation.

This class declares 29 methods for Validation objects in C++ programs.
Available methods include: `AddArea`, `GetAlertStyle`, `GetAreas`, `GetErrorMessage`, `GetErrorTitle`, `GetFormula1`, `GetFormula2`, `GetIgnoreBlank`, `GetInCellDropDown`, `GetInputMessage`, `GetInputTitle`, `GetOperator`, and 17 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetAreas()` → `std::vector<CellArea>` | Gets the areas. |
| `GetType()` → `ValidationType` | Gets or sets the type. |
| `SetType(value: ValidationType)` | Sets the type value. |
| `GetAlertStyle()` → `ValidationAlertType` | Gets or sets the alert style. |
| `SetAlertStyle(value: ValidationAlertType)` | Sets the alert style 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. |
| `GetIgnoreBlank()` → `bool` | Gets or sets a value indicating whether ignore blank. |
| `SetIgnoreBlank(value: bool)` | Sets the ignore blank value. |
| `GetInCellDropDown()` → `bool` | Gets or sets a value indicating whether in cell drop down. |
| `SetInCellDropDown(value: bool)` | Sets the in cell drop down value. |
| `GetInputTitle()` → `std::string` | Gets or sets the input title. |
| `SetInputTitle(value: std::string)` | Sets the input title value. |
| `GetInputMessage()` → `std::string` | Gets or sets the input message. |
| `SetInputMessage(value: std::string)` | Sets the input message value. |
| `GetErrorTitle()` → `std::string` | Gets or sets the error title. |
| `SetErrorTitle(value: std::string)` | Sets the error title value. |
| `GetErrorMessage()` → `std::string` | Gets or sets the error message. |
| `SetErrorMessage(value: std::string)` | Sets the error message value. |
| `GetShowInput()` → `bool` | Gets or sets a value indicating whether show input. |
| `SetShowInput(value: bool)` | Sets the show input value. |
| `GetShowError()` → `bool` | Gets or sets a value indicating whether show error. |
| `SetShowError(value: bool)` | Sets the show error value. |
| `AddArea(area: CellArea)` | Adds the specified item. The area. |
| `RemoveArea(area: CellArea)` | Removes the specified item. The area. |

## See Also

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