officefileapi-devexpress-dot-xtrarichedit-dot-richeditbehavioroptions-dfcd0c84.md
Specifies the settings applied to the default font of a RichEdit control.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[DefaultValue(RichEditBaseValueSource.Auto)]
public virtual RichEditBaseValueSource FontSource { get; set; }
<DefaultValue(RichEditBaseValueSource.Auto)>
Public Overridable Property FontSource As RichEditBaseValueSource
| Type | Default | Description |
|---|---|---|
| RichEditBaseValueSource | Auto |
A RichEditBaseValueSource enumeration member, specifying the font settings’ provider.
|
Available values:
| Name | Description |
|---|---|
| Auto |
The property value is obtained from the corresponding property of the control if it is different from default.
| | Document |
The property value is obtained from the corresponding property of the document.
| | Control |
The property value is obtained from the corresponding property of the control.
|
You can access this nested property as listed below:
| Object Type | Path to FontSource |
|---|---|
| RichEditControlOptionsBase |
.Behavior .FontSource
|
Set the FontSource property to RichEditBaseValueSource.Control to use the control’s AppearanceObject.Font value is used to display text. When the FontSource is set to RichEditBaseValueSource.Auto, the AppearanceObject.Font value is applied if it’s different from the document’s default font value. The font is used to the text with no direct font formatting or style applied.
Important
Starting with v19.2, the RichEditControl uses document themes to retrieve default font information. As such, the FontSource property does no longer affect the default document font. Set the RichEditControlCompatibility.UseThemeFonts property to false to restore previous behavior and use the FontSource property.
See Also