HotXLS Docs

ColorIndex property

Returns or sets the colour of the font. The colour is specified as an index value into the current colour palette, or as the following XlColorIndex constant: xlColorIndexAutomatic. Read/write LongWord.
HotXLS keeps the classic XLS font colour API palette-based. ThemeColor / TintAndShade are XLSX-only style concepts. See Classic XLS colour model.

Syntax

property ColorIndex: LongWord;

Example

This example changes the font colour in cell A1 on sheet one to red.

Workbook.Worksheets[1].Range['A1', 'A1'].Font.ColorIndex := 3;