## PivotTable::SetPreserveFormatting method


Indicates whether cell formatting ([PivotTableFormat](../../pivottableformat/)) is preserved when the [PivotTable](../) is refreshed or recalculated.


>Deprecated
>
>Use PivotTable.PreserveCellFormattingOnUpdate property instead. 
```cpp
void Aspose::Cells::Pivot::PivotTable::SetPreserveFormatting(bool value)
```

## Remarks


NOTE: This property is now obsolete. Instead, please use PivotTable.PreserveCellFormattingOnUpdate property. This method will be removed 12 months later since July 2026. **Aspose** apologizes for any inconvenience you may have experienced. 


## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotTable](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
