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

# WorksheetProtection

## Overview

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

Represents worksheet protection.

This class declares 33 methods for WorksheetProtection objects in C++ programs.
Available methods include: `GetAutoFilter`, `GetDeleteColumns`, `GetDeleteRows`, `GetFormatCells`, `GetFormatColumns`, `GetFormatRows`, `GetInsertColumns`, `GetInsertHyperlinks`, `GetInsertRows`, `GetIsProtected`, `GetObjects`, `GetPivotTables`, and 21 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. |
| `Reset()` | Resets all protection settings to their defaults. |

## See Also

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