Package com.grapecity.documents.excel
Interface IPivotTables
- All Superinterfaces:
Iterable<IPivotTable>
Represents a collection of all the PivotTable objects on the specified worksheet.
-
Method Summary
Modifier and TypeMethodDescriptionadd(IPivotCache PivotCache, IRange TableDestination) Adds a new PivotTable report.add(IPivotCache PivotCache, IRange TableDestination, String TableName) Adds a new PivotTable report.get(int index) Returns a single object from a collection.Returns a single object from a collection.intgetCount()Returns the number of objects in the collection.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getCount
int getCount()Returns the number of objects in the collection. -
add
Adds a new PivotTable report.- Parameters:
PivotCache- The PivotTable cache on which the new PivotTable report is based.The cache provides data for the report.TableDestination- The cell in the upper-left corner of the PivotTable report'sdestination range (the range on the worksheet where the resulting report will be placed). You must specify a destination range on the worksheet that contains the PivotTables object specified by expression.- Returns:
- PivotTable object
-
add
Adds a new PivotTable report.- Parameters:
PivotCache- The PivotTable cache on which the new PivotTable report is based.The cache provides data for the report.TableDestination- The cell in the upper-left corner of the PivotTable report'sdestination range (the range on the worksheet where the resulting report will be placed). You must specify a destination range on the worksheet that contains the PivotTables object specified by expression.TableName- The name of the new PivotTable report.- Returns:
- PivotTable object
-
get
Returns a single object from a collection.- Parameters:
index- The index number for the object.
-
get
Returns a single object from a collection.- Parameters:
name- The name for the object.
-