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) | 直接交换两件物品。 |