# SheetProtection.canSelect Method

> SheetProtection.canSelect method in the browser TypeScript API: Checks protected selection permissions for a rectangle without allocating blank cells.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > SheetProtection > SheetProtection.canSelect Method
- **404 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotection/canselect-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotection/canselect-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotection/canselect-method/llms-full.txt

---

Checks protected selection permissions for a rectangle without allocating blank cells.

Owner: [SheetProtection](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotection/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
canSelect(range: string): boolean
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `range` | `string` | No | A1 range on the owning worksheet. |

### Return Value

`boolean`.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

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

function applySheetProtectionCanSelect(book: Workbook) {
    const sheetProtection = book.sheets.at(0).protection;

    const result = sheetProtection.canSelect('A1:B5');
    return result;
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [SheetProtection Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetprotection/llms-full.txt)
- [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt)

---

## Nearby

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