# SheetProtection.protect Method

> SheetProtection.protect method in the TX Sheet Control JavaScript API for Node.js: Protects the worksheet. Includes the syntax and a JavaScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Node.js Server > SheetProtection > SheetProtection.protect Method
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/llms-full.txt

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/#syntax)
- [Parameters](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/#parameters)
- [Return Value](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/#return-value)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/#examples)
- [Remarks](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/#remarks)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/protect-method/#see-also)

---

## Nearby

- **Previous:** [SheetProtection.isProtected Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/isprotected-property/llms.txt)
- **Next:** [SheetProtection.settings Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/settings-property/llms.txt)
