HotXLS Docs

SchemeColor property

Returns or sets the color of a Color object as an index in the current palette. Read/write Longword.

Syntax

property SchemeColor: Longword;

Example

This example adds a comment to cell B2 and then sets the foreground color for the comment's fill.

With Workbook.Sheets[1] do begin
  With Range['B2', 'B2'].AddComment do begin
    Shape.Fill.ForeColor.SchemeColor := 31;
    Text := 'SchemeColor #31 is equal RGB ' + inttohex(Shape.Fill.ForeColor.RGB, 6);
  end;
end;