Skip to content
本页内容

IncludePatterns (属性)

如果指定样式中包含 ColorColorIndexInvertIfNegativePatternPatternColorPatternColorIndex 对象的内部属性,则该属性值为 Truebool 类型,可读写。

示例

python
#本示例在 Sheet1 的 A1 单元格样式中加入图案格式
def test():
    Application.Worksheets.Item("Sheet1").Range("A1").Style.IncludePatterns = True
python
#本示例显示活动工作表中C3单元格样式是否加入图案格式
def test():
    range = ActiveSheet.Range("C3")
    print(range.Style.IncludePatterns)