Click or drag to resize

IPivotTable Interface

Represents pivot table object.

Namespace: Spire.Xls.Core
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public interface IPivotTable

The IPivotTable type exposes the following members.

Properties
Name Description
Public property AutoFormatType
Gets/sets the auto format type of PivotTable.
Public property BuiltInStyle
Gets/sets built-in pivot style.
Public property CacheIndex
Gets Index of the pivot Cache.Read-only.
Public property CalculatedFields
Returns the collection of calculated fields of the specified pivot table.Read-only.
Public property ColumnFields
Returns the collection of Column field for the specified pivot table.Read-only.
Public property ColumnsPerPage
Specifies the number of columns per page for this PivotTable that the filter area will occupy.
Public property DataFields
Gets collection of pivot table data fields. Read-only.
Public property DisplayFieldCaptions
Gets/sets value controlling whether or not filter buttons and PivotField captions for rows and columns are displayed in the grid.
Public property IsColumnGrand
Gets/sets value indicating whether the PivotTable contains column with grand totals for rows (same as ColumnGrand in VBA).
Public property IsCompatibleWithExcel2003
Gets/sets whether compatible with excel2003. The default value is true.
Public property IsRowGrand
Gets/sets value indicating whether the PivotTable contains row with grand totals for columns (same as RowGrand in VBA).
Public property Location
Returns pivot table location.
Public property Name
Gets pivot table name. Read-only.
Public property Options
Represents the pivot table options.Read-only
Public property PageFields
Returns the collection of page field for the specified pivot table,Read-only.
Public property PivotFields
Gets collection of pivot fields. Read-only.
Public property RepeatItemsOnEachPrintedPage
True if row, column, and item labels appear on the first row of each page when the specified PivotTable report is printed. False if labels are printed only on the first page. The default value is True.
Public property RowFields
Returns the collection of Row field for the specified pivot table.Read-only.
Public property RowsPerPage
Specifies the number of rows per page for this PivotTable that the filter area will occupy.Read-only.
Public property ShowColumnGrand
Gets/sets value indicating whether the PivotTable contains grand totals for columns.
Public property ShowDataFieldInRow
Gets/sets value indicating whether the PivotTable data fields are shown in rows.
Public property ShowDrillIndicators
The ShowDrillIndicators property is used for toggling the display of drill indicators in the PivotTable.
Public property ShowRowGrand
Gets/sets value indicating whether the PivotTable contains grand totals for rows.
Top
Methods
Name Description
Public method ApplyStyleToRange
Apply style to range in pivot table.
Public method ChangeDataSource
Change the data source of pivotTable.
Public method Clear
This method clears all the fields, deletes all filtering and sorting applied to the PivotTable.
Public method ClearColumnFieldFilter
clear the column field filter.
Public method ClearFilter
clear the row and column field filter depends on field name.
Public method ClearRowFieldFilter
clear the row field filter.
Top
See Also