# Spreadsheet Documents

> Find the page for each part of a workbook: worksheets, cells and ranges, formulas and names, formatting, tables, validation, charts, pictures and protection.

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

---

Everything a TX Sheet Control workbook holds is part of its spreadsheet document: multiple worksheets, typed cell values, rich text, formatting, named ranges, Excel-style tables, formulas, sorting, AutoFilter, validation, protection, comments, notes, hyperlinks, pictures, shapes, charts and sparklines. Named cell styles and themes keep the formatting consistent. Worksheets, ranges, formulas, tables and charts use consistent concepts across the supported application platforms.

### How a Workbook Is Organized

A workbook owns worksheets, named ranges, calculation, history, events and dashboards. The editor displays one active worksheet or dashboard view. Backend code can work with explicit worksheet handles without selecting a UI view.

- **Handles.** Use worksheet-bound handles for code that must continue working when the selected worksheet changes. A handle identifies an object in a particular document, not merely an address string, so reacquire handles after loading a different document.
- **Indices and addresses.** Collection indices are zero-based; A1 addresses are one-based labels.
- **Code samples.** The samples use the JavaScript API of the browser editor, in which `editor` is the [Spreadsheet](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/browser/spreadsheet/llms-full.txt) created in [JavaScript](https://docs.textcontrol.com/tx-sheet-control/getting-started/spreadsheet-editor/javascript/llms-full.txt).

Undo and redo, which support authoring workflows, are described in [Batch Updates, Undo and Redo](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/undo-redo/llms-full.txt), and print settings in [Page Layout and Print Settings](https://docs.textcontrol.com/tx-sheet-control/pdf/page-layout/llms-full.txt).

### Find the Right Page

| If you want to | Read |
|---|---|
| Add, rename and address worksheets, and keep handles valid after a load | [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt) |
| Write typed values, text and formulas into cells and ranges | [Cells and Ranges](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/cells/llms-full.txt) |
| Insert, delete, hide and size rows and columns | [Rows and Columns](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/rows-columns/llms-full.txt) |
| Copy values or formulas, fill sequences and merge cells | [Copy, Paste and Fill](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/copy-fill/llms-full.txt) |
| Format fonts, fills and number formats | [Formatting and Number Display](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formatting/llms-full.txt) |
| Highlight values with rules, data bars, color scales and icon sets | [Conditional Formatting and Cell Styles](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/conditional-formatting/llms-full.txt) |
| Calculate with formulas, references and dynamic arrays | [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt) |
| Register custom functions and supply application data to formulas | [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt) |
| Give ranges and constants names, or bind external workbooks | [Named Ranges and External References](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/named-ranges/llms-full.txt) |
| Store, display and filter dates | [Dates and Locales](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/dates/llms-full.txt) |
| Turn a range into a table with named columns and a style | [Tables](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/tables/llms-full.txt) |
| Sort, filter, split text and remove duplicates | [Sorting and Filtering](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/sorting-filtering/llms-full.txt) |
| Restrict input to lists, bounds and conditions | [Data Validation](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/validation/llms-full.txt) |
| Visualize data with charts and sparklines | [Charts and Sparklines](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/charts/llms-full.txt) |
| Insert pictures and shapes | [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt) |
| Attach comments, notes and hyperlinks to cells | [Comments, Notes and Hyperlinks](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/comments/llms-full.txt) |
| Lock cells and restrict editing | [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt) |

### Where to Start

1. [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt): the document model and its handles.
2. [Cells and Ranges](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/cells/llms-full.txt): values, text and formulas in cells.
3. [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt) and [Formatting and Number Display](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formatting/llms-full.txt): calculation and presentation.
4. The page of the feature you need, from the table above.

### Pages in This Section

- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt): worksheets and handles, document replacement, batches and history, document bounds.
- [Cells and Ranges](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/cells/llms-full.txt): input, value and display, range operations, A1 addresses and coordinates.
- [Rows and Columns](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/rows-columns/llms-full.txt): sizes in explicit units, AutoFit, structure changes and hidden rows and columns.
- [Copy, Paste and Fill](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/copy-fill/llms-full.txt): copy modes, fill operations, the clipboard and merged cells.
- [Formatting and Number Display](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formatting/llms-full.txt): the Format Cells dialog, number formats, styles, themes and rich text.
- [Conditional Formatting and Cell Styles](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/conditional-formatting/llms-full.txt): rules from the Home ribbon and from code, the rule manager, named styles and themes.
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt): references and arrays, calculation errors and functions that need application data.
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt): custom functions, formula providers and the lifetime of their registrations.
- [Named Ranges and External References](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/named-ranges/llms-full.txt): workbook and worksheet names, references and external workbooks.
- [Dates and Locales](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/dates/llms-full.txt): date serials and date systems, date formats and the date filters of dashboards.
- [Tables](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/tables/llms-full.txt): Excel-style tables, table styles, calculated columns and structure changes.
- [Sorting and Filtering](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/sorting-filtering/llms-full.txt): sorting, AutoFilter and previewed transformations.
- [Data Validation](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/validation/llms-full.txt): validation rules in the dialog and in code, and cell types.
- [Charts and Sparklines](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/charts/llms-full.txt): worksheet charts in code and in the UI, chart types and sparkline groups.
- [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt): picture sources, shapes and groups, anchors and rich cell text.
- [Comments, Notes and Hyperlinks](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/comments/llms-full.txt): comment threads, notes and hyperlinks, their authoring and what is saved and exported.
- [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt): locked cells, protected forms, rejected changes and the limits of protection.

Summarize source records, group fields and extract details with [Pivot Tables](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pivot-tables/llms-full.txt).

- [Barcodes and QR Codes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/barcodes/llms-full.txt): cell and floating symbols, live source formulas, repeating labels and file compatibility.

---

## In This Section

- [Barcodes and QR Codes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/barcodes/llms-full.txt): Insert Code 128, EAN-13, UPC and QR codes in cells or as floating drawings with setBarcode or addBarcode, bind them to formulas and merge repeating labels.
- [Cells and Ranges](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/cells/llms-full.txt): Write typed values and formulas through cell and range handles, read calculated results in JavaScript or .NET and add hyperlinks in the browser editor.
- [Charts and Sparklines](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/charts/llms-full.txt): Add column, line and other charts to a worksheet with ChartCollection.add or the Insert tab, edit them with Chart Design and create sparkline groups in cells.
- [Comments, Notes and Hyperlinks](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/comments/llms-full.txt): Attach comment threads, notes and hyperlinks to cells with CellComments, CellNote and CellHyperlink, show or hide the comments UI and keep annotations safe.
- [Conditional Formatting and Cell Styles](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/conditional-formatting/llms-full.txt): Highlight values with data bars, color scales, icon sets and formula rules from the ribbon or addConditionalRule, manage rule priority and reuse cell styles.
- [Copy, Paste and Fill](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/copy-fill/llms-full.txt): Copy ranges with copyTo and a paste mode such as values, transpose or link, fill patterns with fillTo, merge and unmerge cells and write to the anchor cell.
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt): Register custom formula functions with registerFunction or RegisterFunctionAsync, supply host data with a formula provider and re-register them for a new owner.
- [Dates and Locales](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/dates/llms-full.txt): Store dates as serials in the 1900 or 1904 date system, display them with format codes such as dd.mm.yyyy and set the format of dashboard date filters.
- [Formatting and Number Display](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formatting/llms-full.txt): Format ranges with Range.format or the Format Cells dialog: fonts, fills, wrapping, currency, percentage and date formats, custom codes, styles and rich text.
- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt): Write formulas with setFormula, use sheet and table references, spill dynamic arrays, handle #REF! and #SPILL! errors and supply external data with a provider.
- [Named Ranges and External References](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/named-ranges/llms-full.txt): Define workbook and worksheet names with NamedRangeCollection, write relative, absolute and sheet references and bind external workbooks for formulas.
- [Pictures and Shapes](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pictures-shapes/llms-full.txt): Insert pictures and shapes with DrawingCollection, group them, add shadows and rotation in Format Shape or Format Picture and format rich text within cells.
- [Pivot Tables](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/pivot-tables/llms-full.txt): Create pivot tables with a field pane and contextual ribbon, group and filter data, drill into records and exchange XLSX with JavaScript, TypeScript or .NET.
- [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt): Protect worksheets with SheetProtection or the Protect Sheet dialog: passwords, allowed actions, locked cells, hidden formulas and rejected edits in code.
- [Rows and Columns](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/rows-columns/llms-full.txt): Size rows and columns in points, pixels or characters, insert, delete and hide them with the rows and columns collections and AutoFit them in the editor.
- [Sorting and Filtering](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/sorting-filtering/llms-full.txt): Sort ranges, set AutoFilter criteria and preview text-to-columns, duplicate removal and consolidation with sortRange, setAutoFilter and previewRemoveDuplicates.
- [Tables](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/tables/llms-full.txt): Create Excel-style tables with named columns, styles and calculated columns, pick a style on the Table Design tab and insert, delete or resize rows and columns.
- [Data Validation](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/validation/llms-full.txt): Constrain cell input with SheetValidation rules or the Data Validation dialog, and configure combo boxes, masks and other interactive cell types.
- [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt): Add, rename and address worksheets in JavaScript and .NET, resolve stale handles after a load, group edits with batch and undo them through the history.

---

## Nearby

- **Previous:** [Events and Cancellation](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/events/llms-full.txt)
- **Next:** [Workbooks and Worksheets](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/workbooks/llms-full.txt)
