应用于 Border对象的 ColorIndex属性。 返回或设置边框的颜色。该颜色可指定为当前调色板中颜色的编号,或下列XlColorIndex 常量之一。Variant 类型,可读写。
expression.ColorIndex expression 必需。该表达式返回“应用于”列表中的对象之一。
应用于 Borders对象的 ColorIndex属性。 返回或设置四条边框的颜色。如果四条边框不是同一种颜色,则返回 Null。该颜色可指定为当前调色板中颜色的编号,或下列XlColorIndex 常量之一。Variant 类型,可读写。
expression.ColorIndex expression 必需。该表达式返回“应用于”列表中的对象之一。
应用于 Font对象的 ColorIndex属性。 返回或设置字体的颜色。该颜色可指定为当前调色板中颜色的编号,或下列XlColorIndex 常量之一。Variant 类型,可读写。
expression.ColorIndex expression 必需。该表达式返回“应用于”列表中的对象之一。
应用于 Interior对象的 ColorIndex属性。 返回或设置边框内部的颜色。该颜色可指定为当前调色板中颜色的编号,或下列XlColorIndex 常量之一。Variant 类型,可读写。
expression.ColorIndex expression 必需。该表达式返回“应用于”列表中的对象之一。 示例以下示例假定正在使用默认调色板。 应用 Border对象的示例。 本示例为 Chart1 中数值坐标轴的主要网格线设置了颜色。
应用 Font对象的示例。 本示例将 Sheet1 的 A1 单元格的字体颜色改为红色。
应用 Interior 和 Border对象的示例。 本示例将 Chart1 的图表区域内部颜色设为红色,将其边框的颜色设为蓝色。
|
|