Back to Devexpress

RichEditBehaviorOptions.ForeColorSource Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditbehavioroptions-e7aecd54.md

latest2.9 KB
Original Source

RichEditBehaviorOptions.ForeColorSource Property

Specifies the color 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

Declaration

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

Property Value

TypeDefaultDescription
RichEditBaseValueSourceAuto

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

|

Available values:

NameDescription
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.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ForeColorSource
RichEditControlOptionsBase

.Behavior .ForeColorSource

|

Remarks

Set the ForeColorSource property to RichEditBaseValueSource.Control to use the AppearanceObject.ForeColor value as the text’s forecolor. When the ForeColorSource property is set to RichEditBaseValueSource.Auto, the AppearanceObject.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

FontSource

RichEditBehaviorOptions Class

RichEditBehaviorOptions Members

DevExpress.XtraRichEdit Namespace