Skip to content
本页内容

Interior (对象)

代表一个对象的内部。

说明

使用 Interior 属性可返回 Interior 对象。

示例

python
#此示例将 Sheet1 中 A1 单元格内部设置为红色
def test():
    Application.Worksheets.Item("Sheet1").Range("A1").Interior.ColorIndex = 3
python
#本示例在活动工作表中 A1:C4 区域单元格的内部添加十字线图案
def test():
    ActiveSheet.Range("A1:C4").Interior.Pattern = xlPatternCrissCross