HotXLS Docs

IXLSInterior Interface

Unit: lxHandle
Represents the interior of range of cells

Properties

Methods

SetThemeColor method — assegna il colore di riempimento (primo piano) della cella a uno dei 12 slot di colore del tema Office con una tinta facoltativa (dalla v2.61.0)
SetPatternThemeColor method — assegna il colore del motivo (sfondo) della cella a uno dei 12 slot di colore del tema Office con una tinta facoltativa (dalla v2.61.0)

Example

This example applies a solid fill to the header row e uses a pattern fill for cells that need attention

var
  Header: IXLSRange;
  WarningCells: IXLSRange;
begin
  Header := Workbook.Sheets[1].Range['A1', 'G1'];
  Header.Interior.Color := $00D9EAD3;
  Header.Interior.Pattern := xlPatternSolid;

  WarningCells := Workbook.Sheets[1].Range['G2', 'G20'];
  WarningCells.Interior.Pattern := xlPatternGray25;
  WarningCells.Interior.PatternColor := $000000FF;
end;

Vedere also