Skip to content
本页内容

Count (属性)

返回集合中对象的数目。只读 int 类型。

示例

python
#本示例显示第一张工作表上第一张列表的表样式元素的数目
def test():
    listObj = Application.Worksheets.Item(1).ListObjects.Item(1)
    print(listObj.TableStyle.TableStyleElements.Count)