HotXLS-dokumentation Innehåll Startsida Översikt TGridToXLS IXLSWorkbook Startsida Innehåll Översikt

ColorIndex egenskap

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

Syntax

property ColorIndex: LongWord;

Exempel

This example changes the font color in cell A1 on sheet one to red
Workbook.Worksheets[1].Range['A1', 'A1'].Font.ColorIndex := 3; Copyright © 2010-2026 losLab Software