## Validation::SetFormula2(const U16String\&, bool, bool) method


Sets the value or expression associated with this validation.

```cpp
void Aspose::Cells::Validation::SetFormula2(const U16String &formula, bool isR1C1, bool isLocal)
```


| Parameter | Type | Description |
| --- | --- | --- |
| formula | const U16String\& | The value or expression associated with this format condition. |
| isR1C1 | bool | Whether the formula is R1C1 formula. |
| isLocal | bool | Whether the formula is locale formatted. |

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [Validation](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Validation::SetFormula2(const char16_t*, bool, bool) method


Sets the value or expression associated with this validation.

```cpp
void Aspose::Cells::Validation::SetFormula2(const char16_t *formula, bool isR1C1, bool isLocal)
```


| Parameter | Type | Description |
| --- | --- | --- |
| formula | const char16_t* | The value or expression associated with this format condition. |
| isR1C1 | bool | Whether the formula is R1C1 formula. |
| isLocal | bool | Whether the formula is locale formatted. |

## See Also

* Class [Vector](../../vector/)
* Class [Validation](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Validation::SetFormula2(const U16String\&) method


Represents the value or expression associated with the data validation.

```cpp
void Aspose::Cells::Validation::SetFormula2(const U16String &value)
```

## See Also

* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [Validation](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## Validation::SetFormula2(const char16_t*) method


Represents the value or expression associated with the data validation.

```cpp
void Aspose::Cells::Validation::SetFormula2(const char16_t *value)
```

## See Also

* Class [Vector](../../vector/)
* Class [Validation](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
