## PivotFieldCollection::Add method


Adds a [PivotField](../../pivotfield/)[Object](../../../aspose.cells/object/) to the specific type PivotFields.

```cpp
int32_t Aspose::Cells::Pivot::PivotFieldCollection::Add(const PivotField &pivotField)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pivotField | const PivotField\& | a [PivotField](../../pivotfield/)[Object](../../../aspose.cells/object/). |

## ReturnValue

the index of the [PivotField](../../pivotfield/)[Object](../../../aspose.cells/object/) in this PivotFields.

## See Also

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