NativeExcel suite v1.x

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;
IndexInteger. The color number (from 1 to 56).
lcidInteger. 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 © NikaSoft 2004-2012