HotXLS Docs

Colors 属性

返回或设置工作簿调色板中的颜色。调色板有 56 个条目,每个条目由一个 RGB 值表示。可读写 LongWord

语法

property Colors[Index: Integer; lcid: Integer]: LongWord;
Index Integer。颜色编号(从 1 到 56)
lcid Integer。区域设置 ID

说明

返回或设置工作簿调色板中的颜色。调色板有 56 个条目,每个条目由一个 RGB 值表示。可读写 LongWord

示例

此示例设置工作簿调色板中的第六种颜色

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