HotXLS 文档

GridlineColorIndex 属性

获取或设置 the classic XLS color index used for displayed worksheet gridlines. Read/write Integer

语法

property GridlineColorIndex: Integer;

说明

The value is saved in the worksheet Window2 icvHdr 字段。默认值为 64,告诉 Excel 使用默认窗口前景色。保存自定义索引时,HotXLS 会清除 Window2 fDefaultHdr 标志,让 Excel 使用存储的颜色。该属性只控制显示的网格线颜色;用 DisplayGridLines 显示或隐藏网格线,用 PageSetup.PrintGridlines 控制打印的网格线

示例

This example sets the displayed gridline color index in the first sheet

Workbook.Sheets[1].GridlineColorIndex := 23;