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

# WorksheetProtectionModel

## Overview

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

Represents worksheet protection model.

This class declares 44 methods for WorksheetProtectionModel objects in C++ programs.
Available methods include: `Clear`, `GetAlgorithmName`, `GetAutoFilter`, `GetDeleteColumns`, `GetDeleteRows`, `GetFormatCells`, `GetFormatColumns`, `GetFormatRows`, `GetHashValue`, `GetInsertColumns`, `GetInsertHyperlinks`, `GetInsertRows`, and 32 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetIsProtected()` → `bool` | Gets or sets a value indicating whether protected. |
| `SetIsProtected(value: bool)` | Sets the is protected value. |
| `GetObjects()` → `bool` | Gets or sets a value indicating whether objects. |
| `SetObjects(value: bool)` | Sets the objects value. |
| `GetScenarios()` → `bool` | Gets or sets a value indicating whether scenarios. |
| `SetScenarios(value: bool)` | Sets the scenarios value. |
| `GetFormatCells()` → `bool` | Gets or sets a value indicating whether format cells. |
| `SetFormatCells(value: bool)` | Sets the format cells value. |
| `GetFormatColumns()` → `bool` | Gets or sets a value indicating whether format columns. |
| `SetFormatColumns(value: bool)` | Sets the format columns value. |
| `GetFormatRows()` → `bool` | Gets or sets a value indicating whether format rows. |
| `SetFormatRows(value: bool)` | Sets the format rows value. |
| `GetInsertColumns()` → `bool` | Gets or sets a value indicating whether insert columns. |
| `SetInsertColumns(value: bool)` | Sets the insert columns value. |
| `GetInsertRows()` → `bool` | Gets or sets a value indicating whether insert rows. |
| `SetInsertRows(value: bool)` | Sets the insert rows value. |
| `GetInsertHyperlinks()` → `bool` | Gets or sets a value indicating whether insert hyperlinks. |
| `SetInsertHyperlinks(value: bool)` | Sets the insert hyperlinks value. |
| `GetDeleteColumns()` → `bool` | Gets or sets a value indicating whether delete columns. |
| `SetDeleteColumns(value: bool)` | Sets the delete columns value. |
| `GetDeleteRows()` → `bool` | Gets or sets a value indicating whether delete rows. |
| `SetDeleteRows(value: bool)` | Sets the delete rows value. |
| `GetSelectLockedCells()` → `bool` | Gets or sets a value indicating whether select locked cells. |
| `SetSelectLockedCells(value: bool)` | Sets the select locked cells value. |
| `GetSort()` → `bool` | Gets or sets a value indicating whether sort. |
| `SetSort(value: bool)` | Sets the sort value. |
| `GetAutoFilter()` → `bool` | Gets or sets a value indicating whether auto filter. |
| `SetAutoFilter(value: bool)` | Sets the auto filter value. |
| `GetPivotTables()` → `bool` | Gets or sets a value indicating whether pivot tables. |
| `SetPivotTables(value: bool)` | Sets the pivot tables value. |
| `GetSelectUnlockedCells()` → `bool` | Gets or sets a value indicating whether select unlocked cells. |
| `SetSelectUnlockedCells(value: bool)` | Sets the select unlocked cells value. |
| `GetPasswordHash()` → `std::string` | Gets or sets the password hash. |
| `SetPasswordHash(value: std::string)` | Sets the password hash value. |
| `GetAlgorithmName()` → `std::string` | Gets or sets the algorithm name. |
| `SetAlgorithmName(value: std::string)` | Sets the algorithm name value. |
| `GetHashValue()` → `std::string` | Gets or sets a value indicating whether h value. |
| `SetHashValue(value: std::string)` | Sets the hash value value. |
| `GetSaltValue()` → `std::string` | Gets or sets the salt value. |
| `SetSaltValue(value: std::string)` | Sets the salt value value. |
| `GetSpinCount()` → `std::string` | Gets or sets the spin count. |
| `SetSpinCount(value: std::string)` | Sets the spin count value. |
| `Clear()` | Clears the current state. |
| `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/)