## PivotTableFormatCollection::FormatArea method


Formats selected area.

```cpp
PivotTableFormat Aspose::Cells::Pivot::PivotTableFormatCollection::FormatArea(PivotFieldType axisType, int32_t fieldPosition, PivotFieldSubtotalType subtotalType, PivotTableSelectionType selectionType, bool isGrandRow, bool isGrandColumn, const Style &style)
```


| Parameter | Type | Description |
| --- | --- | --- |
| axisType | PivotFieldType | The region of the [PivotTable](../../pivottable/) to which this rule applies. |
| fieldPosition | int32_t | Position of the field within the axis to which this rule applies. |
| subtotalType | PivotFieldSubtotalType | The subtotal filter type of the pivot field |
| selectionType | PivotTableSelectionType | Indicates how to select data. |
| isGrandRow | bool | Indicates whether selecting grand total rows. |
| isGrandColumn | bool | Indicates whether selecting grand total columns. |
| style | const Style\& | The style which appies to the area of the pivot table. |

## ReturnValue



## See Also

* Class [PivotTableFormat](../../pivottableformat/)
* Enum [PivotFieldType](../../pivotfieldtype/)
* Class [Vector](../../../aspose.cells/vector/)
* Enum [PivotFieldSubtotalType](../../pivotfieldsubtotaltype/)
* Enum [PivotTableSelectionType](../../pivottableselectiontype/)
* Class [Style](../../../aspose.cells/style/)
* Class [PivotTableFormatCollection](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
