HotXLS Docs

Colours property

Returns or sets colours in the palette for the Workbook. The palette has 56 entries, each represented by an RGB value. Read/write LongWord.

Syntax

property Colours[Index: Integer; lcid: Integer]: LongWord;
Index Integer. The colour number (from 1 to 56).
lcid Integer. The locale ID.

Description

Returns or sets colours in the palette for the Workbook. The palette has 56 entries, each represented by an RGB value. Read/write LongWord.

Example

This example sets colour six in the colour palette for the Workbook.

Workbook.Colors[6, 0] := RGB(200, 100, 100);