PivotFieldCollection类
PivotFieldCollection类
代表所有 PivotField 对象的集合 在数据透视表的特定数据透视字段类型中。
PivotFieldCollection 类型公开以下成员:
属性
属性 | 描述 |
---|---|
type | 获取 PivotFields 类型。 |
count | 获取pivotFields的数量。 |
获取特定索引处的 PivotField 对象。
索引器
名称 | 描述 |
---|---|
[index] |
方法
方法 | 描述 |
---|---|
get(self, name) | 获取特定名称的 PivotField 对象。 |
add_by_base_index(self, base_field_index) | 将 PivotField 对象添加到特定类型的 PivotFields。 |
add(self, pivot_field) | 将 PivotField 对象添加到特定类型的 PivotFields。 |
clear(self) | 清除 PivotFieldCollection 的所有字段 |
move(self, curr_pos, dest_pos) | 将 PivotField 从当前位置移动到目标位置 |