Skip to main content
.NET Framework 4.5.2+

RichEditControlCompatibility Class

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

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v22.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core


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.


See Also