format_area方法
format_area(self, axis_type, field_position, subtotal_type, selection_type, is_grand_row, is_grand_column, style)
格式化选定区域。
返回
def format_area(self, axis_type, field_position, subtotal_type, selection_type, is_grand_row, is_grand_column, style):
...
| 范围 | 类型 | 描述 |
|---|---|---|
| axis_type | PivotFieldType | 此规则适用的数据透视表区域。 |
| field_position | int | 此规则适用的轴内的字段位置。 |
| subtotal_type | PivotFieldSubtotalType | 数据透视表字段的小计筛选器类型 |
| selection_type | PivotTableSelectionType | 指示如何选择数据。 |
| is_grand_row | bool | 指示是否选择总计行。 |
| is_grand_column | bool | 指示是否选择总计列。 |
| style | Style | 适用于数据透视表区域的样式。 |