NativeExcel suite v1.x

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 B2 with pink background
With Workbook.Sheets[1] do begin
  With Range['B2', 'B2'].AddComment('Comment text') do begin
    Shape.Fill.Visible := true;
    Shape.Fill.Solid;
    Shape.Fill.ForeColor.RGB := $F0F0FF;
  end;
end;
Copyright © NikaSoft 2004-2011