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);