RichEditControl.ForeColor Property
Gets or sets the color of the text that has no direct font formatting or style applied.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.XtraRichEdit.v24.2.dll
Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public override Color ForeColor { get; set; }
Property Value
Type | Description |
---|---|
Color | A Color object representing the color. |
Remarks
The ForeColor property actually specifies or retrieves the AppearanceObject.ForeColor property of the appearance object, accessible via the RichEditAppearance.Text property.
It sets the font color for the text with an unspecified character formatting. Then, when a document is saved, such characters are saved as directly formatted. The color, once set via the ForeColor property, is retained when the saved document is loaded again, and is not dependent on the current ForeColor setting.
The forecolor specified as the ForeColor property value is applied only if it’s different from the document’s default forecolor (returned by the CharacterPropertiesBase.ForeColor property). Set the RichEditBehaviorOptions.ForeColorSource to RichEditBaseValueSource.Control to use only the ForeColor value.