Contents - Index - Previous - Next


BackColor property




Declaration
property BackColor: TColor;

Description

Specifies the background color of the text in the selection.

Reading the property returns a background color. If the selection includes a mixture of text with a BACKGROUND-COLOR attribute and any other type of element - for example, a control or text without a BACKGROUND-COLOR attribute - the property returns the clNone constant.

Writing the property is only supported if the selection contains text. Writing the property adds a <FONT> element around the selection if one is not already there. Within the <FONT> element, writing the property adds or changes the style attribute BACKGROUND-COLOR.

Run-time only