Class ExcelPivotTable¶
Namespace: OfficeOpenXml.Table.PivotTable
Assembly: EPPlus.dll
An Excel Pivottable
Inheritance¶
object ← XmlHelper ← ExcelPivotTable
Inherited Members¶
object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()
Fields¶
PivotNullValue¶
Represents a null value in a pivot table caches shared items list.
Field Value¶
Properties¶
Address¶
The location of the pivot table
Property Value¶
ApplyBorderFormats¶
If true apply legacy table autoformat border properties
Property Value¶
ApplyFontFormats¶
If true apply legacy table autoformat font properties
Property Value¶
ApplyNumberFormats¶
if true apply legacy table autoformat number format properties.
Property Value¶
ApplyPatternFormats¶
If true apply legacy table autoformat pattern properties
Property Value¶
ApplyWidthHeightFormats¶
If true apply legacy table autoformat width/height properties.
Property Value¶
CacheDefinition¶
Reference to the pivot table cache definition object
Property Value¶
ColumnFields¶
Column label fields
Property Value¶
ExcelPivotTableRowColumnFieldCollection
ColumnGrandTotals¶
If the grand totals should be displayed for the PivotTable columns
Property Value¶
ColumnHeaderCaption¶
The text to be displayed in column header in compact mode.
Property Value¶
Compact¶
A boolean that indicates if new fields should have their compact flag set to true
Property Value¶
CompactData¶
A boolean that indicates if the field next to the data field in the PivotTable should be displayed in the same column of the spreadsheet.
Property Value¶
DataCaption¶
Specifies the name of the value area field header in the PivotTable. This caption is shown when the PivotTable when two or more fields are in the values area.
Property Value¶
DataFields¶
Value fields
Property Value¶
ExcelPivotTableDataFieldCollection
DataOnRows¶
If multiple datafields are displayed in the row area or the column area
Property Value¶
EnableDrill¶
If the user is prevented from drilling down on a PivotItem or aggregate value
Property Value¶
ErrorCaption¶
The string to be displayed in cells that contain errors.
Property Value¶
FieldPrintTitles¶
If the row and column titles from the PivotTable should be printed.
Property Value¶
Fields¶
The fields in the table
Property Value¶
ExcelPivotTableFieldCollection
Filters¶
Filters applied to the pivot table
Property Value¶
ExcelPivotTableFilterCollection
FirstDataCol¶
The first column of the PivotTable data, relative to the top left cell in the range.
Property Value¶
FirstDataRow¶
The first column of the PivotTable data, relative to the top left cell in the range
Property Value¶
FirstHeaderRow¶
The first row of the PivotTable header, relative to the top left cell in the ref value
Property Value¶
GrandTotalCaption¶
Specifies the string to be displayed for grand totals.
Property Value¶
GridDropZones¶
A boolean that indicates if the in-grid drop zones should be displayed at runtime, and if classic layout is applied
Property Value¶
Indent¶
The indentation increment for compact axis and can be used to set the Report Layout to Compact Form
Property Value¶
ItemPrintTitles¶
If the row and column titles from the PivotTable should be printed.
Property Value¶
MissingCaption¶
The text to be displayed in cells with no value
Property Value¶
MultipleFieldFilters¶
A boolean that indicates if the fields of a PivotTable can have multiple filters set on them
Property Value¶
Name¶
Name of the pivottable object in Excel
Property Value¶
Outline¶
A boolean that indicates whether new fields should have their outline flag set to true
Property Value¶
OutlineData¶
A boolean that indicates whether data fields in the PivotTable should be displayed in outline form
Property Value¶
PageFields¶
Report filter fields
Property Value¶
ExcelPivotTableRowColumnFieldCollection
PageWrap¶
The number of page fields to display before starting another row or column
Property Value¶
PivotTableStyle¶
The pivot table style. If this property is Custom, the style from the StyleName propery is used.
Property Value¶
PivotTableUri¶
The package internal URI to the pivottable Xml Document.
Property Value¶
Uri
PivotTableXml¶
Provides access to the XML data representing the pivottable in the package.
Property Value¶
XmlDocument
PrintDrill¶
If the drill indicators expand collapse buttons should be printed.
Property Value¶
RowFields¶
Row label fields
Property Value¶
ExcelPivotTableRowColumnFieldCollection
RowGrandTotals¶
If the grand totals should be displayed for the PivotTable rows
Property Value¶
RowHeaderCaption¶
The text to be displayed in row header in compact mode.
Property Value¶
ShowCalcMember¶
Show the drill indicators
Property Value¶
ShowColumnHeaders¶
Whether to show column headers for the pivot table.
Property Value¶
ShowColumnStripes¶
Whether to show column stripe formatting for the pivot table.
Property Value¶
ShowDataTips¶
If the tooltips should be displayed for PivotTable data cells.
Property Value¶
ShowDrill¶
Show the drill down buttons
Property Value¶
ShowError¶
Indicates whether to show error messages in cells.
Property Value¶
ShowHeaders¶
Show field headers
Property Value¶
ShowLastColumn¶
Whether to show the last column for the pivot table.
Property Value¶
ShowMemberPropertyTips¶
Show member property information
Property Value¶
ShowRowHeaders¶
Whether to show row headers for the pivot table.
Property Value¶
ShowRowStripes¶
Whether to show row stripe formatting for the pivot table.
Property Value¶
ShowValuesRow¶
If the pivot tables value row is visible or not. This property only applies when GridDropZones is set to false.
Property Value¶
StyleName¶
Pivot style name. Used for custom styles
Property Value¶
Styles¶
Individual styles for the pivot table.
Property Value¶
ExcelPivotTableAreaStyleCollection
TableStyle¶
The table style. If this property is Custom, the style from the StyleName propery is used.
[Obsolete("Use the PivotTableStyle property for more options")]
public TableStyles TableStyle { get; set; }
Property Value¶
UseAutoFormatting¶
A boolean that indicates whether legacy auto formatting has been applied to the PivotTable view
Property Value¶
ValuesFieldPosition¶
The position of the values in the row- or column- fields list. Position is dependent on DataOnRows. If DataOnRows is true then the position is within the ColumnFields collection, a value of false the position is within the RowFields collection. A negative value or a value out of range of the add the "Σ values" field to the end of the collection.
Property Value¶
WorkSheet¶
The worksheet where the pivottable is located
Property Value¶
Methods¶
SetCompact(bool)¶
Sets all pivot table fields Compact property to the value supplied.
Parameters¶
value bool
The the value for the Compact property.