# Spreadsheet Editor

> The ribbon, Format Cells, chart dialogs and Formula Designer of the browser spreadsheet editor, plus themes, keyboard, frozen panes, undo and events in code.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Sheet Control > Spreadsheet Editor
- **1168 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/llms-full.txt

---

The browser spreadsheet editor of TX Sheet Control is where users author workbooks: they enter values and formulas, format cells, insert tables and charts and prepare printed reports. Find out what users see in the editor and how your application controls it in code, from the theme and the interface language to batched edits, undo and events.

### What the Editor Consists of

The parts users work with:

- **The main areas.** The ribbon, the name box, the formula bar, the grid with its headings, the worksheet and dashboard tabs and the status bar.
- **The ribbon** groups the commands in tabs such as **Home**, **Insert**, **Data** and **Formulas**. Contextual tabs such as **Table Design**, **Chart Design** and **Header & Footer** appear for the relevant selection, and a dashboard in design mode replaces the worksheet ribbon with dashboard commands.
- **The dialogs.** **Format Cells** combines number display, alignment, font, border, fill and protection settings. The chart dialog creates and edits worksheet charts. The **Formula Designer** finds functions and previews a formula's result.

The parts your code works with:

- **`editor.ui`**, the [EditorUi](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/editorui/llms-full.txt) of the editor, sets the theme, the interface language, the visible areas and the zoom. It also selects sheets, ranges, charts and drawings.
- **The workbook** groups edits into one undo step with [batch](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/batch-method/llms-full.txt), undoes and redoes them through [history](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/workbook/history-property/llms-full.txt) and reports changes and file operations through events.

Dashboards have a ribbon tab here, but their designer, viewer and Widget Settings dialog are described in [Dashboards](https://docs.textcontrol.com/tx-sheet-control/dashboards/llms-full.txt).

### Find the Right Page

| If you want to | Read |
|---|---|
| Know the main areas of the editor and rename or manage tabs | [Spreadsheet Editor Tour](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/overview/llms-full.txt) |
| Find the command for a task on a ribbon tab or a contextual tab | [Ribbon and Contextual Commands](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/llms-full.txt) |
| Set number formats, alignment, fonts, borders, fills and cell protection | [Format Cells Dialog](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/format-cells/llms-full.txt) |
| Insert a worksheet chart, or change its type, data range and legend | [Chart Dialogs](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/chart-dialogs/llms-full.txt) |
| Build a formula with a result preview, or trace precedents and dependents | [Formula Designer](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/formula-designer/llms-full.txt) |
| Switch to the dark theme, change the interface language or register language resources | [Appearance and Localization](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/appearance/llms-full.txt) |
| Know the keyboard interaction, and build an accessible page around the editor | [Keyboard and Accessibility](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/keyboard/llms-full.txt) |
| Keep headings in view, split a worksheet or select ranges from code | [Freeze Panes and Selection](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/freeze-panes/llms-full.txt) |
| Make several edits one undo step, or undo and redo them in code | [Batch Updates, Undo and Redo](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/undo-redo/llms-full.txt) |
| React to edits and file operations, or cancel an operation | [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt) |

### Where to Start

1. [Spreadsheet Editor](https://docs.textcontrol.com/tx-sheet-control/getting-started/spreadsheet-editor/llms-full.txt) in Getting Started, if no editor runs in your application yet.
2. [Spreadsheet Editor Tour](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/overview/llms-full.txt): the areas of the editor and what users do in each.
3. [Ribbon and Contextual Commands](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/llms-full.txt): the commands of every tab, with an example task each.
4. [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt), once your application has to react to what users do.

### Pages in This Section

- [Spreadsheet Editor Tour](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/overview/llms-full.txt): the main areas, entering values and formulas, formatting the selection and managing tabs.
- [Ribbon and Contextual Commands](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/llms-full.txt): every ribbon tab and contextual tab, with its groups and an example task.
- [Format Cells Dialog](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/format-cells/llms-full.txt): the Number, Alignment, Font, Border, Fill and Protection tabs.
- [Chart Dialogs](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/chart-dialogs/llms-full.txt): chart families and variants, the preview and the data, title and legend settings.
- [Formula Designer](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/formula-designer/llms-full.txt): building formulas, tracing dependencies and writing formulas in code.
- [Appearance and Localization](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/appearance/llms-full.txt): theme, interface language, locale and currency, language resources and document styling.
- [Keyboard and Accessibility](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/keyboard/llms-full.txt): keyboard interaction, the host page, accessible dashboards and testing.
- [Freeze Panes and Selection](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/freeze-panes/llms-full.txt): frozen and split views, selecting from code and printing frozen worksheets.
- [Batch Updates, Undo and Redo](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/undo-redo/llms-full.txt): batched edits, the undo history and large writes.
- [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt): workbook events, before-events, cancellation and the events of Razor and Angular.

---

## In This Section

- [Appearance and Localization](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/appearance/llms-full.txt): Switch the spreadsheet editor between light, dark and automatic themes, set the interface language, locale and currency, and register language resources.
- [Chart Dialogs](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/chart-dialogs/llms-full.txt): Insert and edit worksheet charts in the chart dialog: pick a chart family and variant, check the live preview and set the title, data range, series and legend.
- [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt): Subscribe to workbook events with onChange and events.on, cancel before-events, pass AbortSignal or CancellationToken and handle Razor and Angular events.
- [Format Cells Dialog](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/format-cells/llms-full.txt): Set number formats, alignment, fonts, borders, fills and protection in Format Cells sections, inspect a live preview and apply the draft to a selected range.
- [Formula Designer](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/formula-designer/llms-full.txt): Find functions and build arguments in the Formula Designer, preview the result, trace precedents and dependents, and write formulas in code with setFormula.
- [Freeze Panes and Selection](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/freeze-panes/llms-full.txt): Freeze heading rows and columns or split a worksheet view with SheetView, select sheets and ranges with EditorUi and read the selection state in JavaScript.
- [Keyboard and Accessibility](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/keyboard/llms-full.txt): Navigate worksheets, edit formulas with F2 and F4, fill selections with Ctrl+Enter and access worksheet and chart data with keyboard shortcuts.
- [Spreadsheet Editor Tour](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/overview/llms-full.txt): Tour the main areas of the spreadsheet editor: ribbon, name box, formula bar, grid, tabs and status bar. Enter formulas, use settings dialogs and rename tabs.
- [Ribbon and Contextual Commands](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/llms-full.txt): Use the ribbon tabs Home, Insert, Data, Formulas and Reporting and the contextual tabs, switch to compact view and hide or disable commands with RibbonOptions.
- [Batch Updates, Undo and Redo](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/undo-redo/llms-full.txt): Group workbook edits into one undo step with Workbook.batch, undo and redo them with Workbook.history and keep history, saving and change events apart.

---

## Nearby

- **Previous:** [Node.js](https://docs.textcontrol.com/tx-sheet-control/getting-started/document-processing/nodejs/llms-full.txt)
- **Next:** [Spreadsheet Editor Tour](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/overview/llms-full.txt)
