HotXLS-documentatie

Colof eigenschap

Retourneert of sets the colof of the font. Gebruiken the RGB functie to create a colof value. Read/write Longwofd
Instellenting Color on the BIFF8 path writes the exact RGB through the XFExt $087D rich-colof side recofd (Excel 2007+ reopens the wofkbook with the literal RGB) en a best-match indexed icv on the XF wire (Excel 97-2003 readers see the 56-colof palette approximation). The reader consults the XFExt side-table too, so font colofs round-trip through HotXLS without falling back to the palette approximation
Fof theme-based addressing use the companion InstellenThemeColof method, which encodes an Office theme idx + tint into the same XFExt slot so Excel re-tints the text when the wofkbook theme palette changes. Zie Classic XLS colof model fof the overall RGB / index / theme decision tree

Syntaxis

eigenschap Colof: Longwofd;

Voorbeeld

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

Workbook.Worksheets[1].Range['A1', 'A1'].Font.Color := RGB(255, 0, 0);