Documentazione HotXLS

ColorIndex proprietà

Restituisce o sets the color of the interior. The color is specified as an index value into the current color palette, o as one of the XlColorIndex constants. Read/write LongWord

Sintassi

proprietà ColorIndex: LongWord;

Descrizione

ColorIndex can be one of these XlColorIndex constants
xlColorIndexAutomatic Usa to specify the automatic fill
xlColorIndexNone Usa to specify no interior fill
La figura seguente mostra i valori dell'indice di colore nella palette di colori predefinita

Esempio

This example sets the color of the range A1:C10 interior to red

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