---
title: "GridPivotFieldCollection.Add"
url: "https://reference.aspose.com/cells/net/aspose.cells.griddesktop.data/gridpivotfieldcollection/add/"
product: "Aspose.Cells for .NET API Reference"
description: "GridPivotFieldCollection method. Adds a PivotField Object to the specific type PivotFields"
---

## GridPivotFieldCollection.Add method

Adds a PivotField Object to the specific type PivotFields.

```csharp
public int Add(GridPivotField pivotField)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pivotField | GridPivotField | a PivotField Object. |

### Return Value

the index of the PivotField Object in this PivotFields.

### See Also

* class [GridPivotField](../../gridpivotfield/)
* class [GridPivotFieldCollection](../)
* namespace [Aspose.Cells.GridDesktop.Data](../../../aspose.cells.griddesktop.data/)
* assembly [Aspose.Cells.GridDesktop](../../../)


