# Document Editor

> Add editing features to the WPF TextControl in XAML and code-behind: Loaded, formatting, tables, barcodes, review, ribbon tabs connected by name, and events.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Document Editor
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/llms-full.txt

---

## On This Page

- [How the WPF Editor Works](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/#how-the-wpf-editor-works)
- [Find the Right Page](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/#find-the-right-page)
- [Where to Start](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/#where-to-start)
- [Pages in This Section](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/#pages-in-this-section)

---

## In This Section

- [Architecture and Control Lifecycle](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/architecture/llms.txt): The WPF TextControl in a window: bars connected by name, text parts and the input focus, startup code in Loaded, FormattingPrinter and ServerTextControl.
- [Charts and Barcodes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/charts-barcodes/llms.txt): Insert QR codes and barcodes in a WPF TextControl with the WPF TXBarcodeControl and BarcodeFrame, format them on the ribbon; charts are Windows Forms only.
- [Comments](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/comments/llms.txt): Work with MS Word compatible comments in a WPF TextControl: add comments and replies in code, list and remove them, set CommentHighlightMode and handle events.
- [Editing Text](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/editing-text/llms.txt): Editing text in the WPF TextControl: selections, clipboard, undo, find and replace, dropped files and keys, with XAML and code-behind for your own commands.
- [Events](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/events/llms.txt): Connect TextControl events in XAML or code, see how they differ from routed events, track unsaved changes and find every WPF TextControl event by subject.
- [Fields, Hyperlinks, and Bookmarks](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/fields/llms.txt): Insert text fields, change MS Word fields and form fields, format and edit hyperlinks, manage bookmarks and open linked files in a WPF TextControl.
- [Footnotes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/footnotes/llms.txt): Add footnotes to documents in a WPF TextControl: connect the RibbonReferencesTab in XAML, insert and number footnotes in C#, navigate, remove and handle events.
- [Form Fields and Conditional Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/form-fields/llms.txt): Create WPF forms with the RibbonFormFieldsTab or C#: text, check box, drop-down and date fields, form protection, field values and conditional instructions.
- [Text and Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/formatting/llms.txt): Set fonts, colors, alignment, indents and tab stops in the WPF TextControl with Selection and ParagraphFormat, and open the built-in formatting dialog boxes.
- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/headers-footers/llms.txt): Set header activation and frame style in XAML, add footers with page numbers and open headers for editing from code in a WPF TextControl with HeaderFooter.
- [Images](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/images/llms.txt): Insert images in a WPF TextControl from files or memory, set text flow, position and z-order, and control image formats and file names when saving.
- [Bullets and Numbered Lists](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/lists/llms.txt): Build bulleted, numbered and multilevel lists in a WPF editor with ListFormat, restart numbering with list styles and read list numbers of paragraphs in code.
- [Loading and Saving Documents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/load-save/llms.txt): Open and save documents in the WPF TextControl with the built-in dialog boxes: WPF.DialogResult, file filters, DialogSettings, byte arrays and HTML strings.
- [Printing and Print Preview](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/printing/llms.txt): Print from a WPF TextControl with the Print overloads, PageRange and Collation, connect the WPF PrintDialog and set the FormattingPrinter for exact line breaks.
- [Document Properties](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/properties/llms.txt): Get and set the title, author, keywords and user-defined properties of a WPF document with DocumentSettings, a XAML sidebar panel and SaveSettings.
- [Document Protection and Editable Regions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/protection/llms.txt): Restrict editing in a WPF TextControl: EditMode, DocumentPermissions and passwords, editable regions for single users, the Permissions tab and CanPrint checks.
- [Ribbon and UI](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/ribbon-ui/llms.txt): Declare the WPF UI around TextControl in XAML: TX Text Control ribbon tabs in a WPF Ribbon, ButtonBar, mini toolbars, RulerBar, StatusBar, Sidebar and dialogs.
- [Sections and Page Layout](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/sections/llms.txt): Divide WPF documents into sections with landscape pages, margins and columns: SectionCollection.Add, SectionFormat, SectionChanged in XAML, 1/96 inch units.
- [Signature Fields](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/signature-fields/llms.txt): Add signature fields in WPF: connect the Insert and frame layout ribbon tabs in XAML, insert SignatureField objects in C# and set signer data and images.
- [Spell Checking and Hyphenation](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/spell-checking/llms.txt): Spell checking in a WPF TextControl: declare a TXSpellChecker resource in XAML, plug in your own checker with SpellCheckText and adjust HyphenateWord.
- [Stylesheets](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/stylesheets/llms.txt): Define ParagraphStyle and InlineStyle styles in a WPF editor, apply them, update them with Apply, show the Styles sidebar in XAML and copy template styles.
- [Subtext Parts](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/subtext-parts/llms.txt): Use SubTextPart in a WPF TextControl to name text ranges such as contract clauses, attach JSON data, highlight, save and remove them and handle their events.
- [Tables of Contents](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/tables-of-contents/llms.txt): Build tables of contents in a WPF TextControl from structure levels and paragraph styles with the RibbonReferencesTab, TableOfContentsDialog or TableOfContents.
- [Tables and Table Formulas](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/tables/llms.txt): Build tables in a WPF TextControl with the ribbon or TableCollection: add rows, open Table Properties, calculate cells with formulas, A1 and R1C1 references.
- [Text Frames and Shapes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/text-frames-shapes/llms.txt): Insert text frames and drawings in a WPF TextControl with the mouse or in code, bind marker lines in XAML and create shapes with the WPF TXDrawingControl.
- [Track Changes](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/track-changes/llms.txt): Turn on track changes in a WPF TextControl in XAML or code, accept or reject tracked changes, handle CannotTrackChange and connect the Tracked Changes sidebar.
- [Viewing, Zooming, and Navigation](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/viewing/llms.txt): Choose a ViewMode, bind or set ZoomFactor, show control characters and markers, and move to a page with InputPosition and GotoDialog in a WPF TextControl.

---

## Nearby

- **Previous:** [Digitally Sign a PDF](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/getting-started/pdf/sign/llms.txt)
- **Next:** [Architecture and Control Lifecycle](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-editor/architecture/llms.txt)
