RichEditControl Class

Represents a RichEdit control which is a container for the rich-text document providing all the necessary functionality.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v20.1.dll

Declaration

public class RichEditControl :
    Control,
    IGestureClient,
    IBasePrintable,
    IWin32Window,
    IDisposable,
    IToolTipControlClient,
    ILogicalOwner,
    IInputElement,
    IOfficeFontSizeProvider,
    IRichEditDocumentServer,
    IBatchUpdateable,
    IServiceContainer,
    IServiceProvider,
    IRichEditControl,
    ICommandAwareControl<RichEditCommandId>,
    IInnerRichEditControlOwner,
    IInnerRichEditDocumentServerOwner,
    INotifyPropertyChanged,
    IRichEditDocumentLayoutProvider
Public Class RichEditControl
    Inherits Control
    Implements IGestureClient,
               IBasePrintable,
               IWin32Window,
               IDisposable,
               IToolTipControlClient,
               ILogicalOwner,
               IInputElement,
               IOfficeFontSizeProvider,
               IRichEditDocumentServer,
               IBatchUpdateable,
               IServiceContainer,
               IServiceProvider,
               IRichEditControl,
               ICommandAwareControl(Of RichEditCommandId),
               IInnerRichEditControlOwner,
               IInnerRichEditDocumentServerOwner,
               INotifyPropertyChanged,
               IRichEditDocumentLayoutProvider

Related API Members

The following members accept/return RichEditControl objects:

Remarks

The RichEditControl is a word processing viewer. It processes text with any text direction. The DXRichEdit ships with an integrated Command UI which enables end users to perform basic operations.

mainpage

The Document and the SubDocument interfaces are the entry points for a RichEdit document. Use the IRichEditControl.Document property to access the Document instance.

Refer to the Document Elements section for more information about the available elements and how to manage them.

You can provide a document source for the RichEditControl using the RichEditControl.DocumentSource property, or load a document in code behind using the RichEditControl.LoadDocument() method overloads.

Check the Examples section for code examples used to solve different word processing tasks.

The RichEditControl provides control-specific options. Use the RichEditControl.BehaviorOptions property to retrieve settings used to control editor operations (save, print,clipboard operations, etc.)

The RichEditControl.DocumentCapabilitiesOptions property provides access to options used to control the use of document elements.

The Visual Elements section describes the RichEditControl's interface and built-in dialogs.

The code sample below creates a new Rich Text Editor in XAML and provides a document source for it. Refer to the Getting Started section for step-by-step tutorials on how to create a Rich Text Editor application and provide it with a command UI.

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication1"
        xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
        x:Class="WpfApplication1.MainWindow"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <dxre:RichEditControl CommandBarStyle="Ribbon"
                              DocumentSource="pack://application:,,,/WpfApplication1;component/Document.docx"/>
    </Grid>
</Window>
See Also