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

# ProtectionValue

## Overview

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

Represents protection value.

This class declares 6 methods for ProtectionValue objects in C++ programs.
Available methods include: `Clone`, `GetIsHidden`, `GetIsLocked`, `ProtectionValue`, `SetIsHidden`, `SetIsLocked`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `ProtectionValue()` | Initializes a new instance of the class. |
| `GetIsLocked()` → `bool` | Gets or sets a value indicating whether locked. |
| `SetIsLocked(value: bool)` | Sets the is locked value. |
| `GetIsHidden()` → `bool` | Gets or sets a value indicating whether hidden. |
| `SetIsHidden(value: bool)` | Sets the is hidden value. |
| `Clone()` → `ProtectionValue` | Creates a copy of the current instance. The protection value. |

## See Also

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