接口 IPivotCache
public interface IPivotCache
Represents the memory cache for a PivotTable report.
-
方法概要
修饰符和类型方法说明createPivotTable
(IRange TableDestination) Creates a PivotTable report based on a PivotCache object.createPivotTable
(IRange TableDestination, String TableName) Creates a PivotTable report based on a PivotCache object.int
getIndex()
Returns the index number of the object within the collection of similar objects.int
Returns the number of records in the PivotTable cache or the number of cache records that contain the specified item.已过时。Returns the date on which the PivotTable cache was last refreshed.Returns the name of the person who last refreshed the PivotTable cache.Gets the data source for the PivotTable report.void
refresh()
Updates the cache of the PivotTable object.void
setSourceData
(IRange value) Sets the data source for the PivotTable report.
-
方法详细资料
-
getIndex
int getIndex()Returns the index number of the object within the collection of similar objects. -
getRecordCount
int getRecordCount()Returns the number of records in the PivotTable cache or the number of cache records that contain the specified item. -
getRefreshDate
已过时。This member is obsolete. Use
Returns the date on which the PivotTable cache was last refreshed.getRefreshLocalDateTime()
instead. -
getRefreshLocalDateTime
LocalDateTime getRefreshLocalDateTime()Returns the date on which the PivotTable cache was last refreshed. -
getRefreshName
String getRefreshName()Returns the name of the person who last refreshed the PivotTable cache. -
getSourceData
IRange getSourceData()Gets the data source for the PivotTable report. -
setSourceData
Sets the data source for the PivotTable report. -
createPivotTable
Creates a PivotTable report based on a PivotCache object.- 参数:
TableDestination
- The cell in the upper-left corner of the PivotTable report’sdestination range (the range on the worksheet where the resulting PivotTable report will be placed). The destination range must be on a worksheet in the workbook that contains the PivotCache object specified by expression.
-
createPivotTable
Creates a PivotTable report based on a PivotCache object.- 参数:
TableDestination
- The cell in the upper-left corner of the PivotTable report’sdestination range (the range on the worksheet where the resulting PivotTable report will be placed). The destination range must be on a worksheet in the workbook that contains the PivotCache object specified by expression.TableName
- The name of the new PivotTable report.
-
refresh
void refresh()Updates the cache of the PivotTable object.
-