Back to Devexpress

DXRichEditBehaviorOptions.UseThemeFonts Property

wpf-devexpress-dot-xpf-dot-richedit-dot-dxricheditbehavioroptions-a8de2dbc.md

latest2.4 KB
Original Source

DXRichEditBehaviorOptions.UseThemeFonts Property

Specifies whether to use theme fonts to retrieve default document font information. This is a dependency property.

Namespace : DevExpress.Xpf.RichEdit

Assembly : DevExpress.Xpf.RichEdit.v25.2.dll

NuGet Package : DevExpress.Wpf.RichEdit

Declaration

csharp
public bool UseThemeFonts { get; set; }
vb
Public Property UseThemeFonts As Boolean

Property Value

TypeDescription
Boolean

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UseThemeFonts
RichEditControl

.BehaviorOptions .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 DXRichEditBehaviorOptions.UseThemeFonts property 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

DXRichEditBehaviorOptions Class

DXRichEditBehaviorOptions Members

DevExpress.Xpf.RichEdit Namespace