## PivotTable::GetDataFields method


Gets a [PivotField](../../pivotfield/) object that represents all the data fields in a [PivotTable](../). Read-only.It would be init only when there are two or more data fields in the DataPiovtFiels. It only use to add DataPivotField to the [PivotTable](../) row/column area . Default is in row area.

```cpp
PivotFieldCollection Aspose::Cells::Pivot::PivotTable::GetDataFields()
```

## See Also

* Class [PivotFieldCollection](../../pivotfieldcollection/)
* Class [PivotTable](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
