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

## GridPivotItemCollection.Add method

Adds a PivotItem Object to the specific type PivotItems.

```csharp
public int Add(GridPivotItem item)
```

| Parameter | Type | Description |
| --- | --- | --- |
| PivotItem | GridPivotItem | a PivotItem Object. |

### Return Value

the index of the PivotItem Object in this PivotItems.

### See Also

* class [GridPivotItem](../../gridpivotitem/)
* class [GridPivotItemCollection](../)
* namespace [Aspose.Cells.GridDesktop.Data](../../../aspose.cells.griddesktop.data/)
* assembly [Aspose.Cells.GridDesktop](../../../)


