Contents - Index - Previous - Next


ForeColor property




Declaration
property ForeColor: TColor;

Description

Specifies the foreground color of the text in the selection.

Reading the property returns a foreground color. If the selection includes a mixture of text with a COLOR attribute and any other type of element - for example, a control or text without a color attribute - the property returns the clNone constant. Otherwise the property returns the value of the COLOR attribute in the <FONT> element that applies to the selection. If no <FONT> element applies, the property returns the default color for the selection.

Writing the property is only supported if the selection contains text, or if the selection is a horizontal line (the <HR> element). Writing the property adds or changes the COLOR attribute.

Run-time only