[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPivotTables.Add

Add Method

Add(IPivotCache, IRange, string)

添加一个新的数据透视表报告。

Declaration
IPivotTable Add(IPivotCache PivotCache, IRange TableDestination, string TableName = null)
Parameters
Type Name Description
IPivotCache PivotCache

新的数据透视表报告所基于的数据透视表缓存。该缓存为报告提供数据。

IRange TableDestination

数据透视表报告目标范围的左上角单元格(即工作表上放置结果报告的范围)。您必须在包含由表达式指定的PivotTables对象的那个工作表上指定一个目标范围。

string TableName

新的数据透视表报告的名称。

Returns
Type Description
IPivotTable

数据透视表对象。