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_typePivotFieldType此规则适用的数据透视表区域。
field_positionint此规则适用的轴内的字段位置。
subtotal_typePivotFieldSubtotalType数据透视表字段的小计筛选器类型
selection_typePivotTableSelectionType指示如何选择数据。
is_grand_rowbool指示是否选择总计行。
is_grand_columnbool指示是否选择总计列。
styleStyle适用于数据透视表区域的样式。

也可以看看