HotXLS Docs

ForeColor property

Returns or sets the foreground colour of the shape fill format

Syntax

property ForeColor: TXLSColorFormat;

Example

This example sets the fill colour of the first shape to red

Shape := Workbook.Sheets[1].Shapes[1];
Shape.Fill.ForeColor.RGB := $FF0000;