Skip to main content

RichEditControlCompatibility Class

Allows you to set common parameters for all RichEditControl instances in the application.

Namespace: DevExpress.XtraRichEdit

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

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public static class RichEditControlCompatibility

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.

Inheritance

Object
RichEditControlCompatibility
See Also