返回或设置内部填充
图案的颜色,以当前调色板的索引或以下 XlColorIndex 常量之一指定:xlColorIndexAutomatic 或 xlColorIndexNone。读/写 LongWord
语法
property PatternColorIndex: LongWord;
备注
将此属性设置为 xlColorIndexAutomatic 可指定单元格的自动图案。将此属性设置为 xlColorIndexNone 可指定不希望使用图案(这与将 Interior 对象的 Pattern 属性设置为 xlPatternNone 相同)
下图显示了默认调色板中的颜色索引值
示例
本示例 sets the color of the interior pattern for range A1:C10 on Worksheet one
Workbook.Worksheets[1].Range['A1', 'C10'].Interior.Pattern := xlChecker;
Workbook.Worksheets[1].Range['A1', 'C10'].Interior.PatternColorIndex := 8;