PivotItemCollection类

PivotItemCollection类

代表 PivotField 中的所有 PivotItem 对象。

PivotItemCollection 类型公开以下成员:

属性

属性描述
count获取数据透视表项的数量。

获取特定索引处的 PivotItem 对象。

索引器

名称描述
[index]

方法

方法描述
get(self, item_value)通过特定名称获取 PivotItem
changeitems_order(self, source_index, dest_index)直接改变两个项目的顺序。
swap_item(self, index1, index2)直接交换两件物品。

也可以看看