Spreadsheet Documents
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
editoris the Spreadsheet created in JavaScript.
Undo and redo, which support authoring workflows, are described in Batch Updates, Undo and Redo, and print settings in Page Layout and Print Settings.
Find the Right Page
| If you want to | Read |
|---|---|
| Add, rename and address worksheets, and keep handles valid after a load | Workbooks and Worksheets |
| Write typed values, text and formulas into cells and ranges | Cells and Ranges |
| Insert, delete, hide and size rows and columns | Rows and Columns |
| Copy values or formulas, fill sequences and merge cells | Copy, Paste and Fill |
| Format fonts, fills and number formats | Formatting and Number Display |
| Highlight values with rules, data bars, color scales and icon sets | Conditional Formatting and Cell Styles |
| Calculate with formulas, references and dynamic arrays | Formulas |
| Register custom functions and supply application data to formulas | Custom Functions and Formula Data |
| Give ranges and constants names, or bind external workbooks | Named Ranges and External References |
| Store, display and filter dates | Dates and Locales |
| Turn a range into a table with named columns and a style | Tables |
| Sort, filter, split text and remove duplicates | Sorting and Filtering |
| Restrict input to lists, bounds and conditions | Data Validation |
| Visualize data with charts and sparklines | Charts and Sparklines |
| Insert pictures and shapes | Pictures and Shapes |
| Attach comments, notes and hyperlinks to cells | Comments, Notes and Hyperlinks |
| Lock cells and restrict editing | Worksheet Protection |
Where to Start
- Workbooks and Worksheets: the document model and its handles.
- Cells and Ranges: values, text and formulas in cells.
- Formulas and Formatting and Number Display: calculation and presentation.
- The page of the feature you need, from the table above.
Pages in This Section
- Workbooks and Worksheets: worksheets and handles, document replacement, batches and history, document bounds.
- Cells and Ranges: input, value and display, range operations, A1 addresses and coordinates.
- Rows and Columns: sizes in explicit units, AutoFit, structure changes and hidden rows and columns.
- Copy, Paste and Fill: copy modes, fill operations, the clipboard and merged cells.
- Formatting and Number Display: the Format Cells dialog, number formats, styles, themes and rich text.
- Conditional Formatting and Cell Styles: rules from the Home ribbon and from code, the rule manager, named styles and themes.
- Formulas: references and arrays, calculation errors and functions that need application data.
- Custom Functions and Formula Data: custom functions, formula providers and the lifetime of their registrations.
- Named Ranges and External References: workbook and worksheet names, references and external workbooks.
- Dates and Locales: date serials and date systems, date formats and the date filters of dashboards.
- Tables: Excel-style tables, table styles, calculated columns and structure changes.
- Sorting and Filtering: sorting, AutoFilter and previewed transformations.
- Data Validation: validation rules in the dialog and in code, and cell types.
- Charts and Sparklines: worksheet charts in code and in the UI, chart types and sparkline groups.
- Pictures and Shapes: picture sources, shapes and groups, anchors and rich cell text.
- Comments, Notes and Hyperlinks: comment threads, notes and hyperlinks, their authoring and what is saved and exported.
- Worksheet Protection: locked cells, protected forms, rejected changes and the limits of protection.
Summarize source records, group fields and extract details with Pivot Tables.
- Barcodes and QR Codes: cell and floating symbols, live source formulas, repeating labels and file compatibility.