## ValidationCollection::Add method


Adds a data validation to the collection.

```cpp
int32_t Aspose::Cells::ValidationCollection::Add(const CellArea &ca)
```


| Parameter | Type | Description |
| --- | --- | --- |
| ca | const CellArea\& | The area contains this validation. |

## ReturnValue

[Validation](../../validation/) object index.

## See Also

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