Back to Devexpress

PivotTableCollection.Add(PivotCache, CellRange, String) Method

officefileapi-devexpress-dot-spreadsheet-dot-pivottablecollection-dot-add-x28-devexpress-dot-spreadsheet-dot-pivotcache-devexpress-dot-spreadsheet-dot-cellrange-system-dot-string-x29.md

latest2.6 KB
Original Source

PivotTableCollection.Add(PivotCache, CellRange, String) Method

Creates a new pivot table with a custom name using the specified data cache and returns the newly created PivotTable object.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
PivotTable Add(
    PivotCache cache,
    CellRange location,
    string name
)
vb
Function Add(
    cache As PivotCache,
    location As CellRange,
    name As String
) As PivotTable

Parameters

NameTypeDescription
cachePivotCache

A PivotCache object that specifies the pivot cache on which the pivot table is based.

| | location | CellRange |

A CellRange object that specifies a cell or cell range in the upper-left corner of the PivotTable report’s destination range.

| | name | String |

A String value that specifies the pivot table name. This value is assigned to the PivotTable.Name property.

|

Returns

TypeDescription
PivotTable

A PivotTable object that specifies the newly created pivot table.

|

See Also

Pivot Table API

How to: Create a Pivot Table

PivotTableCollection Interface

PivotTableCollection Members

DevExpress.Spreadsheet Namespace