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

RichEditControlCompatibility.UseThemeFonts Property

Specifies whether to use theme fonts to retrieve default document font information.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

[DefaultValue(true)]
public static bool UseThemeFonts { get; set; }

Property Value

Type Default Description
Boolean **true**

true, to retrieve document fonts from themes; otherwise, false.

Remarks

In previous versions, the RichEditControlCompatibility.DefaultFontName property allowed you to control the default document font.

With the 19.2 release, the word processing components use document themes to retrieve default document font information. The RichEditControlCompatibility.DefaultFontName property no longer affects the default document font.

Set the RichEditControlCompatibility.UseThemeFonts property to false when starting the application to restore the previous behavior in all instances of the RichEdit components.

Tip

Set the RichEditBehaviorOptions.UseThemeFonts property (or DXRichEditBehaviorOptions.UseThemeFonts for WPF) to false before loading a new document to disable themes for a specific component.

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

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.

See Also