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

RichEditBehaviorOptions.ForeColorSource Property

Specifies the color 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 ForeColorSource { get; set; }
<DefaultValue(RichEditBaseValueSource.Auto)>
Public Overridable Property ForeColorSource As RichEditBaseValueSource

Property Value

Type Description
RichEditBaseValueSource

A RichEditBaseValueSource enumeration member, specifying the provider of the font color settings.

Property Paths

You can access this nested property as listed below:

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

Remarks

Set the ForeColorSource property to RichEditBaseValueSource.Control to use the RichEditControl.ForeColor value as the text's forecolor. When the ForeColorSource property is set to RichEditBaseValueSource.Auto, the RichEditControl.ForeColor property value is applied if it's different from the default forecolor value. The forecolor is applied to the text with no direct font formatting or style applied.

See Also