
## format_area(self, axis_type, field_position, subtotal_type, selection_type, is_grand_row, is_grand_column, style) {#aspose.cells.pivot.PivotFieldType-int-aspose.cells.pivot.PivotFieldSubtotalType-aspose.cells.pivot.PivotTableSelectionType-bool-bool-aspose.cells.Style}

Formats selected area.


### Returns 





```python

def format_area(self, axis_type, field_position, subtotal_type, selection_type, is_grand_row, is_grand_column, style):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| axis_type | aspose.cells.pivot.PivotFieldType | The region of the PivotTable to which this rule applies. |
| field_position | int | Position of the field within the axis to which this rule applies. |
| subtotal_type | aspose.cells.pivot.PivotFieldSubtotalType | The subtotal filter type of the pivot field |
| selection_type | aspose.cells.pivot.PivotTableSelectionType | Indicates how to select data. |
| is_grand_row | bool | Indicates whether selecting grand total rows. |
| is_grand_column | bool | Indicates whether selecting grand total columns. |
| style | aspose.cells.Style | The style which appies to the area of the pivot table. |



### See Also
* module [`aspose.cells.pivot`](../../)
* class [`PivotTableFormat`](/cells/python-net/aspose.cells.pivot/pivottableformat)
* class [`PivotTableFormatCollection`](/cells/python-net/aspose.cells.pivot/pivottableformatcollection)
