# EditorUi.zoom Property

> EditorUi.zoom property in the TX Sheet Control TypeScript API for Node.js: Gets or sets the worksheet display zoom, in percent, from 25 through 400.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > EditorUi > EditorUi.zoom Property
- **350 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/zoom-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/zoom-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/zoom-property/llms-full.txt

---

Gets or sets the worksheet display zoom, in percent, from 25 through 400.

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

### Syntax

```typescript
zoom: number
```

Read the current percentage through `editor.ui.zoom`, or assign a finite percentage to change the editor view. Assignments round to a whole percentage and clamp to the 25–400 range.

### Examples

Pass the EditorUi value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

```typescript
function inspectEditorUiZoom(editorUi: { zoom: number }) {
    const value = editorUi['zoom'];
    console.log('EditorUi.zoom', value);
}
```

### Remarks

A nonfinite assignment raises `TypeError`. Assigning a finite value below 25 applies 25 percent; a value above 400 applies 400 percent. This property changes screen zoom independently of print scaling.

Use [setZoom](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/setzoom-method/llms-full.txt) when you need the applied percentage as the return value.

### See Also

- [EditorUi Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)

---

## Nearby

- **Previous:** [EditorUi.viewMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/viewmode-property/llms-full.txt)
- **Next:** [EditorUi.highlightDependents Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/editorui/highlightdependents-property/llms-full.txt)
