Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

RichEditControlCompatibility Class

Allows setting common parameters for all RichEditControl instances in the application.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v19.1.Core.dll


public static class RichEditControlCompatibility


Use properties of the static RichEditControlCompatibility class (the RichEditControlCompatibility.DefaultFontName and RichEditControlCompatibility.DefaultFontSize properties) to specify font settings which override individual default font settings for all RichEditControl instances in the application. Since different versions of MS Word have different default fonts, the RichEditControlCompatibility class allows you to ensure version compatibility and consistency throughout your application.

To change the default font for all RichEditControl instances, use the following code:

DevExpress.XtraRichEdit.RichEditControlCompatibility.DefaultFontName = "Times New Roman";
DevExpress.XtraRichEdit.RichEditControlCompatibility.DefaultFontSize = 12;


Run this code to set the RichEditControlCompatibility properties before calling the InitializeComponent method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RichEditControlCompatibility class.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.


See Also