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

RichEditBehaviorOptions.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

public virtual bool UseThemeFonts { get; set; }

Property Value

Type Description
Boolean

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

Property Paths

You can access this nested property as listed below:

Library Object Type Path to UseThemeFonts
WinForms Controls SnapControlOptions
.Behavior .UseThemeFonts
RepositoryItemRichTextEdit
.OptionsBehavior .UseThemeFonts
RichEditControlOptions
.Behavior .UseThemeFonts
WPF Controls RichEditControlOptions
.Behavior .UseThemeFonts
Office File API RichEditControlOptionsBase
.Behavior .UseThemeFonts
ASP.NET Web Forms Controls ASPxRichEditSettings
.Behavior .UseThemeFonts

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 RichEditBehaviorOptions.UseThemeFonts property (or DXRichEditBehaviorOptions.UseThemeFonts for WPF) to false before loading a new document to disable themes for a specific component.

Tip

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

See Also