The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

RichEditControlCompatibility Class

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

Namespace: DevExpress.XtraRichEdit

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

Declaration

public static class RichEditControlCompatibility
Public Module RichEditControlCompatibility
public static class RichEditControlCompatibility
Public Module 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