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

# WorkbookModel

## Overview

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

Represents workbook model.

This class declares 33 methods for WorkbookModel objects in C++ programs.
Available methods include: `DiagnosticBag`, `DocumentPropertiesModel`, `GetActiveSheetIndex`, `GetDefaultStyle`, `GetDefinedNames`, `GetDiagnostics`, `GetDocumentProperties`, `GetProperties`, `GetSettings`, `GetSharedStrings`, `GetStyles`, `GetWorksheets`, and 7 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.
Accessor methods: `DiagnosticBag`, `DocumentPropertiesModel`, `SharedStringRepository`, `StyleRepository`, `StyleValue`, `WorkbookPropertiesModel`, and 1 more.

## Accessor Methods

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `WorkbookSettingsModel` | `WorkbookSettingsModel` | Read | Gets the workbook settings model. |
| `WorkbookPropertiesModel` | `WorkbookPropertiesModel` | Read | Gets the workbook properties model. |
| `DocumentPropertiesModel` | `DocumentPropertiesModel` | Read | Gets the document properties model. |
| `DiagnosticBag` | `DiagnosticBag` | Read | Gets the diagnostic bag. |
| `StyleRepository` | `StyleRepository` | Read | Gets the style repository. |
| `SharedStringRepository` | `SharedStringRepository` | Read | Gets the shared string repository. |
| `StyleValue` | `StyleValue` | Read | Gets the style value. |

## Methods

| Signature | Description |
|-----------|-------------|
| `WorkbookSettingsModel()` → `WorkbookSettingsModel` | Gets the settings. |
| `WorkbookSettingsModel()` → `WorkbookSettingsModel` | Calls WorkbookSettingsModel on this WorkbookModel instance. |
| `WorkbookPropertiesModel()` → `WorkbookPropertiesModel` | Gets the properties. |
| `WorkbookPropertiesModel()` → `WorkbookPropertiesModel` | Calls WorkbookPropertiesModel on this WorkbookModel instance. |
| `DocumentPropertiesModel()` → `DocumentPropertiesModel` | Gets the document properties. |
| `DocumentPropertiesModel()` → `DocumentPropertiesModel` | Calls DocumentPropertiesModel on this WorkbookModel instance. |
| `DiagnosticBag()` → `DiagnosticBag` | Gets the diagnostics. |
| `DiagnosticBag()` → `DiagnosticBag` | Calls DiagnosticBag on this WorkbookModel instance. |
| `StyleRepository()` → `StyleRepository` | Gets the styles. |
| `StyleRepository()` → `StyleRepository` | Calls StyleRepository on this WorkbookModel instance. |
| `SharedStringRepository()` → `SharedStringRepository` | Gets or sets the shared strings. |
| `SharedStringRepository()` → `SharedStringRepository` | Calls SharedStringRepository on this WorkbookModel instance. |
| `StyleValue()` → `StyleValue` | Gets or sets the default style. |
| `GetWorksheets()` → `std::deque<WorksheetModel>` | Gets the worksheets. |
| `GetWorksheets()` → `std::deque<WorksheetModel>` | Returns the worksheets. |
| `GetSettings()` → `WorkbookSettingsModel` | Gets the settings. |
| `GetSettings()` → `WorkbookSettingsModel` | Returns the settings. |
| `GetProperties()` → `WorkbookPropertiesModel` | Gets the properties. |
| `GetProperties()` → `WorkbookPropertiesModel` | Returns the properties. |
| `GetDocumentProperties()` → `DocumentPropertiesModel` | Gets the document properties. |
| `GetDocumentProperties()` → `DocumentPropertiesModel` | Returns the document properties. |
| `GetDiagnostics()` → `DiagnosticBag` | Gets the diagnostics. |
| `GetDiagnostics()` → `DiagnosticBag` | Returns the diagnostics. |
| `GetStyles()` → `StyleRepository` | Gets the styles. |
| `GetStyles()` → `StyleRepository` | Returns the styles. |
| `GetSharedStrings()` → `SharedStringRepository` | Gets or sets the shared strings. |
| `GetSharedStrings()` → `SharedStringRepository` | Returns the shared strings. |
| `GetDefaultStyle()` → `StyleValue` | Gets or sets the default style. |
| `SetDefaultStyle(value: StyleValue)` | Sets the default style value. |
| `GetActiveSheetIndex()` → `int` | Gets or sets the active sheet index. |
| `SetActiveSheetIndex(value: int)` | Sets the active sheet index value. |
| `GetDefinedNames()` → `std::vector<DefinedNameModel>` | Gets the defined names. |
| `GetDefinedNames()` → `std::vector<DefinedNameModel>` | Returns the defined names. |

## See Also

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