Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

RichEditBehaviorOptions.ForeColorSource Property

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

Namespace: DevExpress.XtraRichEdit

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

Declaration

[DefaultValue(RichEditBaseValueSource.Auto)]
public virtual RichEditBaseValueSource ForeColorSource { get; set; }

Property Value

Type Default Description
RichEditBaseValueSource **Auto**

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

Property Paths

You can access this nested property as listed below:

Library Object Type Path to ForeColorSource
WinForms Controls SnapControlOptions
.Behavior.ForeColorSource
RepositoryItemRichTextEdit
.OptionsBehavior.ForeColorSource
RichEditControlOptions
.Behavior.ForeColorSource
WPF Controls RichEditControlOptions
.Behavior.ForeColorSource
Office File API RichEditControlOptionsBase
.Behavior.ForeColorSource
ASP.NET Web Forms Controls ASPxRichEditSettings
.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