The RichEditControl implements the main Rich Edit functionality, and is available in the DX.21.2: Rich Text Editor toolbox tab in Visual Studio.
<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"> <Grid> <dxre:RichEditControl CommandBarStyle="Ribbon"/> </Grid> </Window>
The functionality of the RichEditControl is programmatically accessible using the native API. The Document interface, exposed via the RichEditControl.Document property, is the main way for a programmer to use API methods and properties.
The RichEditControl displays a document with a set of Views. When a document is loaded, the Document Model is constructed and transformed into the Document Layout. The current RichEditControl.ActiveView renders and displays the layout. Therefore, a document exists only in its native RichEdit representation. To get a document or a part of a document in any other format, a corresponding exporter is utilized.
For more information on the document structure and on the interaction between a model and a layout, refer to the RichEditControl Document section.
For an overview of RichEditControl events, review the Events article.