HotXLS Delphi Excel Read Write Library / Component Developers Guide loslab Inc.

Colors property

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

Syntax

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

Description

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

Example

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

Workbook.Colors[6, 0] := RGB(200, 100, 100);
Copyright©2007-2019 loslab.com