DXRichEditBehaviorOptions.FontSource Property

Gets or sets the default font settings of the RichEditControl. This is a dependency property.

Namespace: DevExpress.Xpf.RichEdit

Assembly: DevExpress.Xpf.RichEdit.v20.1.dll


public RichEditBaseValueSource FontSource { get; set; }
Public Property FontSource As RichEditBaseValueSource

Property Value

Type Description

A RichEditBaseValueSource enumeration value indicating the font settings's provider.

Property Paths

You can access this nested property as listed below:

Object Type Path to FontSource


Set the FontSource property to the RichEditBaseValueSource.Control to use the RichEditControl.FontFamily, RichEditControl.FontSize, RichEditControl.FontStyle properties' values as the text's font settings. The RichEditBaseValueSource.Auto value indicates that if the Font control's properties have values different from the default, these values are applied. The font settings are applied to the text with no direct font formatting or style applied.


If you use an integrated Ribbon UI, the font options specified by the RichEditControl.FontFamily, RichEditControl.FontSize, RichEditControl.FontStyle properties are applied to the ribbon as well. We recommend you to specify the document's default settings (returned by the Document.DefaultCharacterProperties property) to change the text appearance.


Starting with v19.2, the RichEditControl uses document themes to retrieve default font information. As such, the RichEditControl.FontFamily property does no longer affect the default document font. Set the RichEditControlCompatibility.UseThemeFonts property to false to restore previous behavior and use the RichEditControl.FontFamily property.

See Also