Package com.grapecity.documents.excel
Interface IPivotCache
public interface IPivotCache
表示为数据透视表报告的内存缓存。
-
Method Summary
Modifier and TypeMethodDescriptioncreatePivotTable(IRange TableDestination) 基于PivotCache对象创建一个数据透视表报告。createPivotTable(IRange TableDestination, String TableName) 基于PivotCache对象创建一个数据透视表报告。intgetIndex()返回对象在类似对象集合中的索引编号。int返回数据透视表缓存中的记录数,或者包含指定项目的缓存记录数。Deprecated.返回数据透视表缓存最后刷新的日期。返回最后刷新数据透视表缓存的那个人的名字。boolean获取一个值,表示每次打开工作簿时是否自动更新数据透视表缓存。默认值为false。获取数据透视表报告的数据源。voidrefresh()更新数据透视表对象的缓存。voidsetRefreshOnFileOpen(boolean value) 设置一个值,表示每次打开工作簿时是否自动更新数据透视表缓存。voidsetSourceData(IRange value) 设置数据透视表报告的数据源。
-
Method Details
-
getIndex
int getIndex()返回对象在类似对象集合中的索引编号。 -
getRecordCount
int getRecordCount()返回数据透视表缓存中的记录数,或者包含指定项目的缓存记录数。 -
getRefreshDate
Deprecated.该成员已过时。请使用
返回数据透视表缓存最后刷新的日期。getRefreshLocalDateTime()。 -
getRefreshLocalDateTime
LocalDateTime getRefreshLocalDateTime()返回数据透视表缓存最后刷新的日期。 -
getRefreshName
String getRefreshName()返回最后刷新数据透视表缓存的那个人的名字。 -
getSourceData
IRange getSourceData()获取数据透视表报告的数据源。 -
setSourceData
设置数据透视表报告的数据源。 -
createPivotTable
基于PivotCache对象创建一个数据透视表报告。- Parameters:
TableDestination- 数据透视表报告目标范围左上角的单元格(即工作表中将要放置生成的数据透视表报告的范围)。目标范围必须位于包含由表达式指定的PivotCache对象的工作簿中的工作表上。
-
createPivotTable
基于PivotCache对象创建一个数据透视表报告。- Parameters:
TableDestination- 数据透视表报告目标范围左上角的单元格(即工作表中放置生成的数据透视表报告的范围)。目标范围必须包含在包含由表达式指定的PivotCache对象的工作簿中的工作表中。TableName- 新数据透视表报告的名称。
-
refresh
void refresh()更新数据透视表对象的缓存。- Throws:
IllegalStateException- 如果数据透视表缓存的源工作表不存在。
-
getRefreshOnFileOpen
boolean getRefreshOnFileOpen()获取一个值,表示每次打开工作簿时是否自动更新数据透视表缓存。默认值为false。 -
setRefreshOnFileOpen
void setRefreshOnFileOpen(boolean value) 设置一个值,表示每次打开工作簿时是否自动更新数据透视表缓存。
-