# Document Editor

> Build a Windows Forms word processor with TextControl: lifecycle, loading, formatting, tables, fields, forms, track changes, ribbon, dialog boxes and events.

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

---

## On This Page

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

---

## In This Section

- [Architecture and Control Lifecycle](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/architecture/llms.txt): Text parts of a Windows Forms TextControl, where code goes from InitializeComponent and OnLoad to FormClosing, and a control that grows with AutoControlSize.
- [Charts and Barcodes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/charts-barcodes/llms.txt): Charts and barcodes in a Windows Forms TextControl: the chart gallery, Chart Layout tab, barcode types and dialog, and changing a selected ChartFrame in C#.
- [Comments](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/comments/llms.txt): Add, answer, edit and remove comments in a Windows Forms TextControl with CommentCollection and CommentedText, the Comments sidebar, CommentsDialog and events.
- [Editing Text](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/editing-text/llms.txt): Select, copy, undo, find and drag text in a Windows Forms TextControl: built-in keys and ribbon commands, and the C# API for your own menus and shortcuts.
- [Events](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/events/llms.txt): Connect event handlers to the Windows Forms TextControl, track unsaved changes with Changed and DocumentLoaded, find events by subject and override On methods.
- [Fields, Hyperlinks, and Bookmarks](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/fields/llms.txt): Use TextField, MS Word ApplicationField, HypertextLink, DocumentTarget bookmarks and DocumentLink in a Windows Forms TextControl and handle link clicks in C#.
- [Footnotes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/footnotes/llms.txt): Insert footnotes in a Windows Forms TextControl with the References tab or FootnoteCollection.Add, set their number format, find and remove them, use events.
- [Form Fields and Conditional Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/form-fields/llms.txt): Design Windows Forms forms with text, check box, drop-down and date fields, protect and preview them, read values and check them with conditional instructions.
- [Text and Paragraph Formatting](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/formatting/llms.txt): Format characters and paragraphs in Windows Forms with Selection and ParagraphFormat: fonts, colors, indents, tab stops, formatting dialogs, CharFormatChanged.
- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/headers-footers/llms.txt): Add headers, footers and Page x of y numbers in a Windows Forms TextControl with HeaderFooterCollection and PageNumberField, and set how users activate them.
- [Images](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/images/llms.txt): Insert, anchor and scale images in a Windows Forms TextControl with ImageCollection.Add, the Frame Formatting tab, ImageAttributesDialog and save settings.
- [Bullets and Numbered Lists](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/lists/llms.txt): Create bulleted, numbered and structured lists with ListFormat in Windows Forms, use the Bullets and Numbering dialog, restart numbering and define list styles.
- [Loading and Saving Documents](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/load-save/llms.txt): Configure the Open and Save As dialog boxes of a Windows Forms TextControl: file filters, DefaultStreamType, DialogSettings options and the file the user chose.
- [Printing and Print Preview](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/printing/llms.txt): Print from a Windows Forms TextControl: Print and PrintPreview overloads, a PrintDialog with page ranges, single pages from PrintPage and the FormattingPrinter.
- [Document Properties](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/properties/llms.txt): Set title, author, keywords and user-defined properties with DocumentSettings in Windows Forms, show them in the sidebar and override them with SaveSettings.
- [Document Protection and Editable Regions](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/protection/llms.txt): Protect documents in a Windows Forms TextControl with EditMode and DocumentPermissions, mark editable regions per user and use the Permissions ribbon tab.
- [Ribbon and UI](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/ribbon-ui/llms.txt): Choose and customize the Windows Forms UI around TextControl: Ribbon tabs, ButtonBar, mini toolbars, RulerBar, StatusBar, Sidebar, dialogs and localization.
- [Sections and Page Layout](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/sections/llms.txt): Insert section breaks, set landscape pages, margins and columns in a Windows Forms TextControl with SectionCollection, SectionFormat and the Page Setup dialog.
- [Signature Fields](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/signature-fields/llms.txt): Prepare documents for signing in Windows Forms: insert SignatureField frames with the ribbon or in C#, store SignerData, set signature images and handle events.
- [Spell Checking and Hyphenation](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/spell-checking/llms.txt): Connect TX Spell .NET to a Windows Forms TextControl, use SpellCheckText for another checker, ignore MisspelledWords in code and control HyphenateWord.
- [Stylesheets](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/stylesheets/llms.txt): Create, apply and update ParagraphStyle and InlineStyle in Windows Forms: the [Normal] style, the Styles gallery and sidebar, and styles copied from a template.
- [Subtext Parts](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/subtext-parts/llms.txt): Mark text ranges as SubTextPart objects in a Windows Forms TextControl: highlight them, store data, nest, list, save and remove them and react to their events.
- [Tables of Contents](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/tables-of-contents/llms.txt): Generate tables of contents from structure levels in Windows Forms: paragraph styles, the References tab and dialog, TableOfContents in C#, updates and links.
- [Tables and Table Formulas](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/tables/llms.txt): Insert, merge and edit tables in a Windows Forms TextControl, calculate cells with formulas in A1 or R1C1 style, catch FormulaException and set number formats.
- [Text Frames and Shapes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/text-frames-shapes/llms.txt): Let users draw text frames and shapes in a Windows Forms TextControl, or insert them in C# with TextFrameCollection, TXDrawingControl, Shape and DrawingFrame.
- [Track Changes](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/track-changes/llms.txt): Record insertions and deletions in a Windows Forms TextControl: set the author with UserNames, list, accept and reject TrackedChange objects and handle events.
- [Viewing, Zooming, and Navigation](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/document-editor/viewing/llms.txt): Set ViewMode and ZoomFactor, show control characters, go to a page, scroll with ScrollLocation and find the visible page in a Windows Forms TextControl.

---

## Nearby

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