Skip to content
本页内容

DefaultSlicerStyle (属性)

TableStyles 对象中指定用作切片器默认样式的样式。可读/写。

返回值

Any

示例

python
#本示例演示活动工作簿切片器默认样式
def test():
    print(ActiveWorkbook.DefaultSlicerStyle)
python
#本示例演示向活动工作簿的 TableStyles 集合中添加 slicer_style1 样式,并指定 slicer_style1 为切片器默认样式
def test():
    ActiveWorkbook.TableStyles.Add("slicer_style1")
    ActiveWorkbook.DefaultSlicerStyle = "slicer_style1"