HotXLS Docs

PatternColor property

Returns or sets the color of the interior pattern as an RGB value. Read/write LongWord.

Syntax

property PatternColor: LongWord;

Example

This example sets the color of the interior pattern for the range A1:C10 on sheet one.

Workbook.Worksheets[1].Range['A1', 'C10'].Interior.Pattern := xlGrid;
Workbook.Worksheets[1].Range['A1', 'C10'].Interior.PatternColor := RGB(255,0,0);