public class GridPivotTable
extends java.lang.Object
GridPivotTable collection.
The PivotTables collection contains all the PivotTable objects on a control.| Modifier and Type | Method and Description |
|---|---|
int |
addFieldToArea(int fieldType,
int baseFieldIndex)
Adds the field to the specific area.
|
int |
addFieldToArea(int fieldType,
java.lang.String fieldName)
Adds the field to the specific area.
|
void |
calculateData()
Calculates pivottable's data to cells.
|
void |
clearAllFields()
clear all pivot fields.
|
GridPivotFieldCollection |
fields(int fieldType)
Gets the specific fields by the field type.
|
GridPivotField |
fields(java.lang.String fieldName)
Gets the specific field by the field name.
|
void |
refreshData()
Refreshes pivottable's data and setting from it's data source.
|
public GridPivotFieldCollection fields(int fieldType)
fieldType - GridPivotFieldType. the field type.public GridPivotField fields(java.lang.String fieldName)
fieldName - the field name.public void clearAllFields()
public int addFieldToArea(int fieldType,
int baseFieldIndex)
fieldType - GridPivotFieldType. The fields area type.baseFieldIndex - The field index in the base fields.public int addFieldToArea(int fieldType,
java.lang.String fieldName)
fieldType - GridPivotFieldType. The fields area type.fieldName - The name in the base fields.public void refreshData()
Remarks
We will gather data from data source to a pivot cache ,then calcualte the data in the cache to the cells. This method is only used to gather all data to a pivot cache.public void calculateData()
Remarks
Cell.Value in the pivot range could not return the correct result if the method is not been called. This method caclulates data with an inner pivot cache,not original data source. So if the data source is changed, please call RefreshData() method first.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.