HotXLS Docs

Fill property

Returns a TXLSFillFormat object that contains fill formatting properties for the specified shape. Read-only TXLSFillFormat.

Syntax

property Fill: TXLSFillFormat;

Example

This example creates new comment with a green background.

with book.Sheets[1] do begin
  with Cells[5, 5].AddComment('Comment text') do begin
    Shape.Fill.Visible := true;
    Shape.Fill.Solid;
    Shape.Fill.ForeColor.RGB := $00E000;
  end;
end;