HotXLS Docs

ForeColor property

Returns a TXLSColorFormat object that represents the specified fill foreground color. Read/write TXLSColorFormat object.

Syntax

property ForeColor: TXLSColorFormat;

Example

This example changes the color of the comment border on cell B2 to red

Var Comment: TXLSComment;
begin
  ...
  With Workbook.Sheets[1] do begin
    Comment := Range['B2', 'B2'].Comment;
    if Assigned(Comment) then Comment.Shape.Line.ForeColor.RGB := $0000FF;
  end;
  ...
end;