## PivotItemCollection类
代表 PivotField 中的所有 [`PivotItem`](/cells/python-net/zh/aspose.cells.pivot/pivotitem) 对象。



PivotItemCollection 类型公开以下成员：

### 属性
|属性|描述|
| :- | :- |
| [count](/cells/python-net/zh/aspose.cells.pivot/pivotitemcollection/count) |获取数据透视表项的数量。|



获取特定索引处的 PivotItem 对象。
### 索引器
|名称|描述|
| :- | :- |
| [index] |  |


### 方法
|方法|描述|
| :- | :- |
| [`get(self, item_value)`](/cells/python-net/zh/aspose.cells.pivot/pivotitemcollection/get/#str) |通过特定名称获取 [`PivotItem`](/cells/python-net/zh/aspose.cells.pivot/pivotitem)。|
| [`changeitems_order(self, source_index, dest_index)`](/cells/python-net/zh/aspose.cells.pivot/pivotitemcollection/changeitems_order/#int-int) |直接改变两个项目的顺序。|
| [`swap_item(self, index1, index2)`](/cells/python-net/zh/aspose.cells.pivot/pivotitemcollection/swap_item/#int-int) |直接交换两件物品。|



### 也可以看看
* 模块[`aspose.cells.pivot`](..)
* 类 [`PivotItem`](/cells/python-net/zh/aspose.cells.pivot/pivotitem)
