HotXLS 文档

PatternColor 属性

Returns or sets the color of the interior pattern as an RGB value. 读/写 LongWord

语法

property PatternColor: LongWord;

示例

本示例 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);