# EditorUi Interface

> EditorUi interface in the TX Sheet Control TypeScript API for the browser, with 11 properties and 15 methods and a TypeScript example.

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

---

Editor-only state and commands. These settings do not belong in server-side workbook data.

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

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

### Members

#### Properties

| Property | Description |
|---|---|
| [areas](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/areas-property/llms-full.txt) | Visible editor chrome; complete snapshots are returned and partial patches are accepted. |
| [comments](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/comments-property/llms-full.txt) | Screen-only comments controls; the sidebar and popup never enter printed workbook data. |
| [language](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/language-property/llms-full.txt) | Interface language, independent of value/number formatting locale. |
| [printContext](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/printcontext-property/llms-full.txt) | Header/footer field context; reads return a detached copy and assignments validate the complete context. |
| [resolvedTheme](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/resolvedtheme-property/llms-full.txt) | Effective light/dark theme after resolving the automatic system preference. |
| [ribbon](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/ribbon-property/llms-full.txt) | Ribbon presentation, visibility and policies for built-in commands. |
| [selection](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selection-property/llms-full.txt) | The selection value of EditorUi. |
| [theme](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/theme-property/llms-full.txt) | The theme value of EditorUi. |
| [viewMode](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/viewmode-property/llms-full.txt) | The viewMode value of EditorUi. |
| [zoom](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/zoom-property/llms-full.txt) | Gets or sets worksheet zoom, rounded and clamped to 25–400 percent. |
| [highlightDependents](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/highlightdependents-property/llms-full.txt) | Enable brief feedback on dependent formula cells. |

#### Methods

| Method | Description |
|---|---|
| [autoFitColumns](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/autofitcolumns-method/llms-full.txt) | The autoFitColumns operation of EditorUi. |
| [autoFitRows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/autofitrows-method/llms-full.txt) | Auto-fits inclusive zero-based indices (or the current selection), waiting for deployed fonts. |
| [clearArrows](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/cleararrows-method/llms-full.txt) | The clearArrows operation of EditorUi. |
| [commitEdit](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/commitedit-method/llms-full.txt) | Commits a pending cell edit; false means validation keeps the editor open. |
| [loadMergeData](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/loadmergedata-method/llms-full.txt) | Loads the application's mail-merge data source without putting transient data in workbook JSON. |
| [selectChart](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectchart-method/llms-full.txt) | The selectChart operation of EditorUi. |
| [selectDrawing](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectdrawing-method/llms-full.txt) | Selects a drawing/chart owned by this editor, switching to its sheet. Foreign/stale handles throw. |
| [selectRange](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectrange-method/llms-full.txt) | The selectRange operation of EditorUi. |
| [selectSheet](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectsheet-method/llms-full.txt) | The selectSheet operation of EditorUi. |
| [setResources](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/setresources-method/llms-full.txt) | Applies application localization overrides to the current interface language. |
| [setTheme](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/settheme-method/llms-full.txt) | The setTheme operation of EditorUi. |
| [setViewMode](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/setviewmode-method/llms-full.txt) | The setViewMode operation of EditorUi. |
| [setZoom](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/setzoom-method/llms-full.txt) | Sets worksheet zoom, rounded and clamped to 25–400 percent, and returns the applied value. |
| [traceDependents](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/tracedependents-method/llms-full.txt) | The traceDependents operation of EditorUi. |
| [tracePrecedents](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/traceprecedents-method/llms-full.txt) | Draws screen-only formula traces for the active cell; returns cross-sheet references. |

### 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
import type { EditorUi } from '@txtextcontrol/tx-sheet-control';

function inspectEditorUiResolvedTheme(editorUi: EditorUi) {
    const value = editorUi['resolvedTheme'];
    console.log('EditorUi.resolvedTheme', value);
}
```

### See Also

- [TypeScript Browser Editor API](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/llms-full.txt)
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
- [pivotTables](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/pivottables-property/llms-full.txt) — Configure and refresh worksheet pivot tables.

---

## In This Section

- [EditorUi.areas Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/areas-property/llms-full.txt): EditorUi.areas property in the TX Sheet Control TypeScript API for the browser: Visible editor chrome. Includes the syntax and a TypeScript example.
- [EditorUi.autoFitColumns Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/autofitcolumns-method/llms-full.txt): EditorUi.autoFitColumns method in the TX Sheet Control TypeScript API for the browser, with the return type Promise<boolean> and a TypeScript example.
- [EditorUi.autoFitRows Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/autofitrows-method/llms-full.txt): EditorUi.autoFitRows method in the browser TypeScript API: Auto-fits inclusive zero-based indices (or the current selection), waiting for deployed fonts.
- [EditorUi.clearArrows Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/cleararrows-method/llms-full.txt): EditorUi.clearArrows method in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [EditorUi.comments Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/comments-property/llms-full.txt): EditorUi.comments property in the TX Sheet Control TypeScript API for the browser: Screen-only comments controls. Includes the syntax and a TypeScript example.
- [EditorUi.commitEdit Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/commitedit-method/llms-full.txt): EditorUi.commitEdit method in the TX Sheet Control TypeScript API for the browser: Commits a pending cell edit; false means validation keeps the editor open.
- [EditorUi.highlightDependents Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/highlightdependents-property/llms-full.txt): EditorUi.highlightDependents property in the TX Sheet Control TypeScript API for the browser, with its type boolean and a TypeScript example.
- [EditorUi.language Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/language-property/llms-full.txt): EditorUi.language property in the TX Sheet Control TypeScript API for the browser: Interface language, independent of value/number formatting locale.
- [EditorUi.loadMergeData Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/loadmergedata-method/llms-full.txt): EditorUi.loadMergeData method in the browser TypeScript API: Loads the application's mail-merge data source without putting transient data in workbook JSON.
- [Editorui.pivotTables Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/pivottables-property/llms-full.txt): Editorui.pivotTables property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [EditorUi.printContext Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/printcontext-property/llms-full.txt): EditorUi.printContext property in the TX Sheet Control TypeScript API for the browser, with its type PrintContext and a TypeScript example.
- [EditorUi.resolvedTheme Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/resolvedtheme-property/llms-full.txt): EditorUi.resolvedTheme property in the browser TypeScript API: Effective light/dark theme after resolving the automatic system preference.
- [EditorUi.ribbon Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/ribbon-property/llms-full.txt): EditorUi.ribbon property in the TX Sheet Control TypeScript API for the browser, with its type RibbonApi and a TypeScript example.
- [EditorUi.selectChart Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectchart-method/llms-full.txt): EditorUi.selectChart method in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [EditorUi.selectDrawing Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectdrawing-method/llms-full.txt): EditorUi.selectDrawing method in the TX Sheet Control TypeScript API for the browser: Selects a drawing/chart owned by this editor, switching to its sheet.
- [EditorUi.selection Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selection-property/llms-full.txt): EditorUi.selection property in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [EditorUi.selectRange Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectrange-method/llms-full.txt): EditorUi.selectRange method in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [EditorUi.selectSheet Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/selectsheet-method/llms-full.txt): EditorUi.selectSheet method in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.
- [EditorUi.setResources Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/setresources-method/llms-full.txt): EditorUi.setResources method in the browser TypeScript API: Applies application localization overrides to the current interface language.
- [EditorUi.setTheme Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/settheme-method/llms-full.txt): EditorUi.setTheme method in the TX Sheet Control TypeScript API for the browser, with the return type "dark" | "auto" | "light" and a TypeScript example.
- [EditorUi.setViewMode Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/setviewmode-method/llms-full.txt): EditorUi.setViewMode method in the TX Sheet Control TypeScript API for the browser, with the return type "normal" | "page-layout" and a TypeScript example.
- [EditorUi.setZoom Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/setzoom-method/llms-full.txt): EditorUi.setZoom method in the TX Sheet Control TypeScript API for the browser: Sets the worksheet display zoom and returns the applied percentage.
- [EditorUi.theme Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/theme-property/llms-full.txt): EditorUi.theme property in the TX Sheet Control TypeScript API for the browser, with its type "dark" | "auto" | "light" and a TypeScript example.
- [EditorUi.traceDependents Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/tracedependents-method/llms-full.txt): EditorUi.traceDependents method in the TX Sheet Control TypeScript API for the browser, with the return type FormulaCellReference[] and a TypeScript example.
- [EditorUi.tracePrecedents Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/traceprecedents-method/llms-full.txt): EditorUi.tracePrecedents method in the TX Sheet Control TypeScript API for the browser: Draws screen-only formula traces for the active cell.
- [EditorUi.viewMode Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/viewmode-property/llms-full.txt): EditorUi.viewMode property in the TX Sheet Control TypeScript API for the browser, with its type "normal" | "page-layout" and a TypeScript example.
- [EditorUi.zoom Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/zoom-property/llms-full.txt): EditorUi.zoom property in the TX Sheet Control TypeScript API for the browser: Gets or sets the worksheet display zoom, in percent, from 25 through 400.

---

## Nearby

- **Previous:** [EditingEvent.sheetId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editingevent/sheetid-property/llms-full.txt)
- **Next:** [EditorUi.areas Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/areas-property/llms-full.txt)
