# SheetProtectionSettings Interface

> SheetProtectionSettings interface in the browser TypeScript API: Editing guard metadata; worksheet protection is not document encryption.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > SheetProtectionSettings Interface
- **1190 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/llms-full.txt

---

Editing guard metadata; worksheet protection is not document encryption.

Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

Type-only declaration; it is not a JavaScript runtime constructor.

### Members

#### Properties

| Property | Description |
|---|---|
| [algorithmName](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/algorithmname-property/llms-full.txt) | The algorithmName value of SheetProtectionSettings. |
| [allowDeleteColumns](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowdeletecolumns-property/llms-full.txt) | The allowDeleteColumns value of SheetProtectionSettings. |
| [allowDeleteRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowdeleterows-property/llms-full.txt) | The allowDeleteRows value of SheetProtectionSettings. |
| [allowEditObjects](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/alloweditobjects-property/llms-full.txt) | The allowEditObjects value of SheetProtectionSettings. |
| [allowEditScenarios](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/alloweditscenarios-property/llms-full.txt) | Preserved for native Excel scenario editing. |
| [allowFilter](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowfilter-property/llms-full.txt) | The allowFilter value of SheetProtectionSettings. |
| [allowFormatCells](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowformatcells-property/llms-full.txt) | The allowFormatCells value of SheetProtectionSettings. |
| [allowFormatColumns](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowformatcolumns-property/llms-full.txt) | The allowFormatColumns value of SheetProtectionSettings. |
| [allowFormatRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowformatrows-property/llms-full.txt) | The allowFormatRows value of SheetProtectionSettings. |
| [allowInsertColumns](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowinsertcolumns-property/llms-full.txt) | The allowInsertColumns value of SheetProtectionSettings. |
| [allowInsertHyperlinks](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowinserthyperlinks-property/llms-full.txt) | The allowInsertHyperlinks value of SheetProtectionSettings. |
| [allowInsertRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowinsertrows-property/llms-full.txt) | The allowInsertRows value of SheetProtectionSettings. |
| [allowSelectLockedCells](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowselectlockedcells-property/llms-full.txt) | The allowSelectLockedCells value of SheetProtectionSettings. |
| [allowSelectUnlockedCells](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowselectunlockedcells-property/llms-full.txt) | The allowSelectUnlockedCells value of SheetProtectionSettings. |
| [allowSort](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowsort-property/llms-full.txt) | The allowSort value of SheetProtectionSettings. |
| [allowUsePivotTables](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowusepivottables-property/llms-full.txt) | Preserved for native Excel PivotTable operations. |
| [hashValue](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/hashvalue-property/llms-full.txt) | The hashValue value of SheetProtectionSettings. |
| [isProtected](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/isprotected-property/llms-full.txt) | The isProtected value of SheetProtectionSettings. |
| [passwordHash](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/passwordhash-property/llms-full.txt) | The passwordHash value of SheetProtectionSettings. |
| [saltValue](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/saltvalue-property/llms-full.txt) | The saltValue value of SheetProtectionSettings. |
| [spinCount](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/spincount-property/llms-full.txt) | The spinCount value of SheetProtectionSettings. |

### Examples

Create sample data and obtain this detached result from the owning document. Return the selected data to the report or application UI.

```typescript
import type { Workbook } from '@txtextcontrol/tx-sheet-control';

function createSheetProtectionSettingsReport(book: Workbook) {
    const sheet = book.sheets.at(0);
    sheet.range('B8:B9').setValues([[120], [80]]);
    sheet.cell('B10').setFormula('=SUM(B8:B9)');
    sheet.range('B8:B10').format({ numberFormatCode: '#,##0.00', fontSize: 11 });
    sheet.protection.protect({ password: 'sample-edit-password' });

    const result = sheet.protection.settings;
    return result;
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt)

---

## In This Section

- [SheetProtectionSettings.algorithmName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/algorithmname-property/llms-full.txt): SheetProtectionSettings.algorithmName property in the browser TypeScript API, with its type string | undefined and a TypeScript example.
- [SheetProtectionSettings.allowDeleteColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowdeletecolumns-property/llms-full.txt): SheetProtectionSettings.allowDeleteColumns property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowDeleteRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowdeleterows-property/llms-full.txt): SheetProtectionSettings.allowDeleteRows property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowEditObjects Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/alloweditobjects-property/llms-full.txt): SheetProtectionSettings.allowEditObjects property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowEditScenarios Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/alloweditscenarios-property/llms-full.txt): SheetProtectionSettings.allowEditScenarios property in the TX Sheet Control TypeScript API for the browser: Preserved for native Excel scenario editing.
- [SheetProtectionSettings.allowFilter Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowfilter-property/llms-full.txt): SheetProtectionSettings.allowFilter property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowFormatCells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowformatcells-property/llms-full.txt): SheetProtectionSettings.allowFormatCells property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowFormatColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowformatcolumns-property/llms-full.txt): SheetProtectionSettings.allowFormatColumns property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowFormatRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowformatrows-property/llms-full.txt): SheetProtectionSettings.allowFormatRows property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowInsertColumns Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowinsertcolumns-property/llms-full.txt): SheetProtectionSettings.allowInsertColumns property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowInsertHyperlinks Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowinserthyperlinks-property/llms-full.txt): SheetProtectionSettings.allowInsertHyperlinks property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowInsertRows Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowinsertrows-property/llms-full.txt): SheetProtectionSettings.allowInsertRows property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowSelectLockedCells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowselectlockedcells-property/llms-full.txt): SheetProtectionSettings.allowSelectLockedCells property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowSelectUnlockedCells Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowselectunlockedcells-property/llms-full.txt): SheetProtectionSettings.allowSelectUnlockedCells property in the browser TypeScript API, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowSort Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowsort-property/llms-full.txt): SheetProtectionSettings.allowSort property in the TX Sheet Control TypeScript API for the browser, with its type boolean | undefined and a TypeScript example.
- [SheetProtectionSettings.allowUsePivotTables Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/allowusepivottables-property/llms-full.txt): SheetProtectionSettings.allowUsePivotTables property in the TX Sheet Control TypeScript API for the browser: Preserved for native Excel PivotTable operations.
- [SheetProtectionSettings.hashValue Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/hashvalue-property/llms-full.txt): SheetProtectionSettings.hashValue property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [SheetProtectionSettings.isProtected Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/isprotected-property/llms-full.txt): SheetProtectionSettings.isProtected property in the TX Sheet Control TypeScript API for the browser, with its type boolean and a TypeScript example.
- [SheetProtectionSettings.passwordHash Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/passwordhash-property/llms-full.txt): SheetProtectionSettings.passwordHash property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [SheetProtectionSettings.saltValue Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/saltvalue-property/llms-full.txt): SheetProtectionSettings.saltValue property in the TX Sheet Control TypeScript API for the browser, with its type string | undefined and a TypeScript example.
- [SheetProtectionSettings.spinCount Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/spincount-property/llms-full.txt): SheetProtectionSettings.spinCount property in the TX Sheet Control TypeScript API for the browser, with its type number | undefined and a TypeScript example.

---

## Nearby

- **Previous:** [SheetProtection.unprotect Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotection/unprotect-method/llms-full.txt)
- **Next:** [SheetProtectionSettings.algorithmName Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotectionsettings/algorithmname-property/llms-full.txt)
