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

# XlsxWorkbookValidations

## Overview

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

Provides static methods for building and loading worksheet data validation elements in the XLSX workbook serializer.

This class declares 3 methods for XlsxWorkbookValidations objects in C++ programs.
Available methods include: `BuildDataValidationsElement`, `LoadValidations`, `XlsxWorkbookValidations`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `XlsxWorkbookValidations()` | Calls XlsxWorkbookValidations on this XlsxWorkbookValidations instance. |
| `BuildDataValidationsElement(worksheet: Core::WorksheetModel)` → `XmlElement` | Builds the dataValidations XML element for a worksheet. Returns a null XmlElement when no validations exist. |
| `LoadValidations(worksheetModel: Core::WorksheetModel, worksheetRoot: XmlElement, diagnostics: LoadDiagnostics, options: LoadOptions, sheetName: std::string_view)` | Loads data validations from the worksheet XML root into the model. |

## See Also

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