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

# Protection

## Overview

`Protection` is a class in Aspose.Cells FOSS for Python.

Represents protection settings for a cell or range of cells.

This class declares 1 method for Protection objects in Python programs.
Available methods include: `__init__`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `hidden`, `locked`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `locked` | - | Read | Gets the locked. |
| `hidden` | - | Read | Gets the hidden. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(locked, hidden)` | Initializes a new instance of Protection class. |

## See Also

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