HotXLS-dokumentation

ColorIndex egenskab

Returnerer 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 holder det klassiske XLS-API til skrifttypefarver paletbaseret. ThemeColor / TintAndShade er stilbegreber, der kun findes i XLSX. Se Classic XLS color model

Syntaks

property ColorIndex: LongWord;

Eksempel

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

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