# Working with WPF RichTextBox

## Content

The most complete rich text editor available for WPF, load, edit, and save formatted text as HTML or RTF documents with **RichTextBox for WPF**. The **RichTextBox** control for **.NET and .NET Framework versions** provides rich formatting, automatic line wrapping, HTML and RTF import/export, table support, images, annotations, and more.

The **C1.WPF.RichTextBox** assembly contains two main objects: the <span data-popup-content="This class is available in \u003ca href=\u0022/componentone/api/wpf/online-richtextbox/dotnet-api/C1.WPF.RichTextBox/C1.WPF.RichTextBox.C1RichTextBox.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022https://developer.mescius.com/componentone/docs/wpf/online-richtextbox/C1.WPF.RichTextBox.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="C1RichTextBox" data-popup-theme="ui-tooltip-green qtip-green">C1RichTextBox</span> control and the <span data-popup-content="This class is available in \u003ca href=\u0022/componentone/api/wpf/online-richtextbox/dotnet-api/C1.WPF.RichTextBox/C1.WPF.RichTextBox.Documents.C1Document.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022https://developer.mescius.com/componentone/docs/wpf/online-richtextbox/C1.WPF.RichTextBox.4.5.2~C1.WPF.RichTextBox.Documents.C1Document.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="C1Document" data-popup-theme="ui-tooltip-green qtip-green">C1Document</span> object.

<span data-popup-content="This class is available in \u003ca href=\u0022/componentone/api/wpf/online-richtextbox/dotnet-api/C1.WPF.RichTextBox/C1.WPF.RichTextBox.C1RichTextBox.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022https://developer.mescius.com/componentone/docs/wpf/online-richtextbox/C1.WPF.RichTextBox.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="C1RichTextBox" data-popup-theme="ui-tooltip-green qtip-green">C1RichTextBox</span> is a powerful text editor that allows you to display and edit formatted text. **C1RichTextBox** supports all the usual formatting options, including fonts, background and foreground colors, lists, hyperlinks, images, borders, and so on. **C1RichTextBox** also supports loading and saving documents in HTML format.

**C1Document** is the class that represents the contents of a **C1RichTextBox**. It is analogous to the **FlowDocument** class in WPF. As in WPF, a **C1Document** is composed of stacked elements (**C1Block** objects) which in turn are composed of inline elements (**C1Run** objects).

Many applications may deal only with the **C1RichTextBox** control, which provides a simple linear view of the document. Other applications may choose to use the rich object model provided by the **C1Document** class to create and manage documents directly, with full access to the document structure.

You can also use related elements such as the [C1RichTextBoxToolbar](/componentone/api/wpf/online-richtextbox/dotnet-framework-api/C1.WPF.RichTextBox.Toolbar.4.6.2/C1.WPF.RichTextBox.C1RichTextBoxToolbar.html) control and **C1SpellChecker** component to expand the functionality of the **C1RichTextBox** control. **C1RichTextBoxToolBar** is a Ribbon-like toolbar included in the **C1.WPF.RichTextBox.Toolbar** assembly. You can easily add a **C1RichTextBoxToolBar** control and link it to a **C1RichTextBox** control to create a full featured Rich Text editor. **C1SpellChecker** is located in the **C1.WPF.SpellChecker** assembly and can be used to add spell-checking functionality to the editor.

## See Also

[C1RichTextBox Concepts and Main Properties](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/C1RichTextBox_Concepts_and_Main_Properties)

[C1RichTextBox Content](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/C1RichTextBox_Content)

[Saving and Loading](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/Saving_and_Loading)

[Hyperlinks](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/Hyperlinks)

[Accessing Layout Information](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/Accessing_Layout_Information)

[Painters](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/Painters)

[Syntax Coloring](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/Syntax_Coloring)

[Overriding Styles](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/Overriding_Styles)

[Hit-Testing](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/Hit-Testing)

[HtmlFilter Customization](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/HtmlFilter_Customization)

**SpellChecker**

[Spell-Checking](/componentone/docs/wpf/online-richtextbox/Working_with_RichTextBox_for_WPF/spell-checking)