RichEditControlCompatibility Class
Allows setting common parameters for all RichEditControl instances in the application.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v20.2.Core.dll
Declaration
Remarks
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;
Important
Run this code to set the RichEditControlCompatibility properties before calling the InitializeComponent method.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RichEditControlCompatibility class.
Note
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.