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

# WorkbookProtectionModel

## Overview

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

Represents workbook protection model.

This class declares 12 methods for WorkbookProtectionModel objects in C++ programs.
Available methods include: `CopyFrom`, `GetLockRevision`, `GetLockStructure`, `GetLockWindows`, `GetRevisionsPassword`, `GetWorkbookPassword`, `HasStoredState`, `SetLockRevision`, `SetLockStructure`, `SetLockWindows`, `SetRevisionsPassword`, `SetWorkbookPassword`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetLockStructure()` → `bool` | Gets or sets a value indicating whether lock structure. |
| `SetLockStructure(value: bool)` | Sets the lock structure value. |
| `GetLockWindows()` → `bool` | Gets or sets a value indicating whether lock windows. |
| `SetLockWindows(value: bool)` | Sets the lock windows value. |
| `GetLockRevision()` → `bool` | Gets or sets a value indicating whether lock revision. |
| `SetLockRevision(value: bool)` | Sets the lock revision value. |
| `GetWorkbookPassword()` → `std::string` | Gets or sets the workbook password. |
| `SetWorkbookPassword(value: std::string)` | Sets the workbook password value. |
| `GetRevisionsPassword()` → `std::string` | Gets or sets the revisions password. |
| `SetRevisionsPassword(value: std::string)` | Sets the revisions password value. |
| `CopyFrom(source: WorkbookProtectionModel)` | Copies values from the specified source. The source. |
| `HasStoredState()` → `bool` | Performs has stored state. true if the condition is met; otherwise, false. |

## See Also

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