# Protection Class

> Protection class in the TX Sheet Control .NET API: Enforced worksheet editing permissions using the same locked-cell styles as the JavaScript editor.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Class
- **Namespace:** `TXTextControl.TXSheetControl.Server`
- **Package:** `TXTextControl.TXSheetControl.Server` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Package:** `TXTextControl.TXSheetControl.Blazor` (assembly `TXTextControl.TXSheetControl.Api.dll`, from the private NuGet feed or the supplied NuGet folder)
- **Inherits:** `TXTextControl.TXSheetControl.Server.DocumentObject`
- **Path:** TX Sheet Control > API Reference > .NET API > TXTextControl.TXSheetControl.Server > Protection Class
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/#syntax)
- [Members](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/#members)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/#see-also)

---

## In This Section

- [Protection.CanSelectAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/canselectasync-method/llms.txt): Protection.CanSelectAsync method in the TX Sheet Control .NET API: Checks whether protected-sheet permissions permit selecting a rectangle.
- [Protection.GetSettingsAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/getsettingsasync-method/llms.txt): Protection.GetSettingsAsync method in the TX Sheet Control .NET API: Reads detached protection metadata without exposing a clear-text password.
- [Protection.ProtectAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/protectasync-method/llms.txt): Protection.ProtectAsync method in the TX Sheet Control .NET API: Enables protection with explicitly granted editing permissions.
- [Protection.UnprotectAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/unprotectasync-method/llms.txt): Protection.UnprotectAsync method in the TX Sheet Control .NET API: Verifies the password before removing protection; use outside a synchronous workbook batch.

---

## Nearby

- **Previous:** [PictureSource.MimeType Property](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/picturesource/mimetype-property/llms.txt)
- **Next:** [Protection.CanSelectAsync Method](https://docs.textcontrol.com/tx-sheet-control/reference/dotnet-api/txtextcontrol-txsheetcontrol-server/protection/canselectasync-method/llms.txt)
