.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

RichEditBehaviorOptions.FontSource Property

Specifies the settings applied to the default font of a RichEdit control.

Namespace: DevExpress.XtraRichEdit

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

Declaration

[DefaultValue(RichEditBaseValueSource.Auto)]
public virtual RichEditBaseValueSource FontSource { get; set; }
<DefaultValue(RichEditBaseValueSource.Auto)>
Public Overridable Property FontSource As RichEditBaseValueSource

Property Value

Type Description
RichEditBaseValueSource

A RichEditBaseValueSource enumeration member, specifying the font settings' provider.

Property Paths

You can access this nested property as listed below:

Show 18 property paths
Library Object Type Path to FontSource
WinForms Controls SnapControl
.Options.Behavior.FontSource
SnapControl
.Options.Behavior.FontSource
SnapControlOptions
.Behavior.FontSource
RepositoryItemRichTextEdit
.OptionsBehavior.FontSource
RichEditControl
.Options.Behavior.FontSource
RichEditControlOptions
.Behavior.FontSource
WPF Controls RichEditControl
.Options.Behavior.FontSource
RichEditControlOptions
.Behavior.FontSource
ASP.NET Controls and MVC Extensions ASPxRichEdit
.Settings.Behavior.FontSource
ASPxRichEditSettings
.Behavior.FontSource
MVCxRichEdit
.Settings.Behavior.FontSource
RichEditSettings
.Settings.Behavior.FontSource
ASP.NET Bootstrap Controls BootstrapRichEdit
.Settings.Behavior.FontSource
Office File API SnapDocumentServer
.Options.Behavior.FontSource
IRichEditDocumentServer
.Options.Behavior.FontSource
RichEditControlOptionsBase
.Behavior.FontSource
RichEditDocumentServer
.Options.Behavior.FontSource
Reporting SyntaxEditor
.Options.Behavior.FontSource

Remarks

Set the FontSource property to RichEditBaseValueSource.Control to use the control's RichEditControl.Font value is used to display text. When the FontSource is set to RichEditBaseValueSource.Auto, the RichEditControl.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