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

ForeColor property

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

Syntax

Example

This example creates a comment on cell D8 with pink background

With Workbook.Sheets[1] do begin
  With Range['D8', 'D8'].AddComment('Please notice') do begin
    Shape.Fill.Visible := true;
    Shape.Fill.Solid;
    Shape.Fill.ForeColor.RGB := $FF6666;
  end;
end;
Copyright©2007-2019 loslab.com