Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelPivotTableInfo

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Represents an existing pivot table definition.

Inheritance

  • object
  • ExcelPivotTableInfo

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 2

Constructors

ExcelPivotTableInfo 4 overloads
public ExcelPivotTableInfo(string name, uint cacheId, string? location, string? sourceSheet, string? sourceRange, string sheetName, int sheetIndex, string? pivotStyle, ExcelPivotLayout layout, bool? dataOnRows, bool? showHeaders, bool? showEmptyRows, bool? showEmptyColumns, bool? showDrill, IReadOnlyList<string> rowFields, IReadOnlyList<string> columnFields, IReadOnlyList<string> pageFields, IReadOnlyList<ExcelPivotDataFieldInfo> dataFields) #

Creates a pivot table info instance.

Parameters

name string required
cacheId uint required
location string? required
sourceSheet string? required
sourceRange string? required
sheetName string required
sheetIndex int required
pivotStyle string? required
layout OfficeIMO.Excel.ExcelPivotLayout required
dataOnRows bool? required
showHeaders bool? required
showEmptyRows bool? required
showEmptyColumns bool? required
showDrill bool? required
rowFields System.Collections.Generic.IReadOnlyList<string> required
columnFields System.Collections.Generic.IReadOnlyList<string> required
pageFields System.Collections.Generic.IReadOnlyList<string> required
dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo> required
public ExcelPivotTableInfo(string name, uint cacheId, string? location, string? sourceSheet, string? sourceRange, string sheetName, int sheetIndex, string? pivotStyle, ExcelPivotLayout layout, bool? dataOnRows, bool? showHeaders, bool? showEmptyRows, bool? showEmptyColumns, bool? showDrill, bool? rowGrandTotals, bool? columnGrandTotals, string? rowHeaderCaption, string? columnHeaderCaption, string? grandTotalCaption, string? missingCaption, string? errorCaption, bool? showDataDropDown, bool? showDropZones, bool? showDataTips, bool? showMemberPropertyTips, bool? fieldListSortAscending, bool? customListSort, IReadOnlyList<string> rowFields, IReadOnlyList<string> columnFields, IReadOnlyList<string> pageFields, IReadOnlyList<ExcelPivotDataFieldInfo> dataFields, IReadOnlyList<ExcelPivotFieldInfo>? fields = null) #

Creates a pivot table info instance.

Parameters

name string required
cacheId uint required
location string? required
sourceSheet string? required
sourceRange string? required
sheetName string required
sheetIndex int required
pivotStyle string? required
layout OfficeIMO.Excel.ExcelPivotLayout required
dataOnRows bool? required
showHeaders bool? required
showEmptyRows bool? required
showEmptyColumns bool? required
showDrill bool? required
rowGrandTotals bool? required
columnGrandTotals bool? required
rowHeaderCaption string? required
columnHeaderCaption string? required
grandTotalCaption string? required
missingCaption string? required
errorCaption string? required
showDataDropDown bool? required
showDropZones bool? required
showDataTips bool? required
showMemberPropertyTips bool? required
fieldListSortAscending bool? required
customListSort bool? required
rowFields System.Collections.Generic.IReadOnlyList<string> required
columnFields System.Collections.Generic.IReadOnlyList<string> required
pageFields System.Collections.Generic.IReadOnlyList<string> required
dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo> required
fields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFieldInfo>? = null optional
public ExcelPivotTableInfo(string name, uint cacheId, string? location, string? sourceSheet, string? sourceRange, string sheetName, int sheetIndex, string? pivotStyle, ExcelPivotLayout layout, bool? dataOnRows, bool? showHeaders, bool? showEmptyRows, bool? showEmptyColumns, bool? showDrill, bool? rowGrandTotals, bool? columnGrandTotals, string? rowHeaderCaption, string? columnHeaderCaption, string? grandTotalCaption, string? missingCaption, string? errorCaption, bool? showDataDropDown, bool? showDropZones, bool? showDataTips, bool? showMemberPropertyTips, bool? fieldListSortAscending, bool? customListSort, IReadOnlyList<string> rowFields, IReadOnlyList<string> columnFields, IReadOnlyList<string> pageFields, IReadOnlyList<ExcelPivotDataFieldInfo> dataFields, IReadOnlyList<ExcelPivotFieldInfo>? fields = null, IReadOnlyList<ExcelPivotFilterInfo>? filters = null, IReadOnlyList<ExcelPivotCalculatedFieldInfo>? calculatedFields = null, IReadOnlyList<ExcelPivotGroupingInfo>? groupings = null, bool? refreshOnOpen = null, bool? saveSourceData = null, bool? preserveFormatting = null, bool? enableDrill = null) #

Creates a pivot table info instance.

Parameters

name string required
cacheId uint required
location string? required
sourceSheet string? required
sourceRange string? required
sheetName string required
sheetIndex int required
pivotStyle string? required
layout OfficeIMO.Excel.ExcelPivotLayout required
dataOnRows bool? required
showHeaders bool? required
showEmptyRows bool? required
showEmptyColumns bool? required
showDrill bool? required
rowGrandTotals bool? required
columnGrandTotals bool? required
rowHeaderCaption string? required
columnHeaderCaption string? required
grandTotalCaption string? required
missingCaption string? required
errorCaption string? required
showDataDropDown bool? required
showDropZones bool? required
showDataTips bool? required
showMemberPropertyTips bool? required
fieldListSortAscending bool? required
customListSort bool? required
rowFields System.Collections.Generic.IReadOnlyList<string> required
columnFields System.Collections.Generic.IReadOnlyList<string> required
pageFields System.Collections.Generic.IReadOnlyList<string> required
dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo> required
fields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFieldInfo>? = null optional
filters System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFilterInfo>? = null optional
calculatedFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotCalculatedFieldInfo>? = null optional
groupings System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotGroupingInfo>? = null optional
refreshOnOpen bool? = null optional
saveSourceData bool? = null optional
preserveFormatting bool? = null optional
enableDrill bool? = null optional
public ExcelPivotTableInfo(string name, uint cacheId, string? location, string? sourceSheet, string? sourceRange, string sheetName, int sheetIndex, string? pivotStyle, ExcelPivotLayout layout, bool? dataOnRows, bool? showHeaders, bool? showEmptyRows, bool? showEmptyColumns, bool? showDrill, bool? rowGrandTotals, bool? columnGrandTotals, string? rowHeaderCaption, string? columnHeaderCaption, string? grandTotalCaption, string? missingCaption, string? errorCaption, bool? showDataDropDown, bool? showDropZones, bool? showDataTips, bool? showMemberPropertyTips, bool? fieldListSortAscending, bool? customListSort, IReadOnlyList<string> rowFields, IReadOnlyList<string> columnFields, IReadOnlyList<string> pageFields, IReadOnlyList<ExcelPivotDataFieldInfo> dataFields, IReadOnlyList<ExcelPivotFieldInfo>? fields, IReadOnlyList<ExcelPivotFilterInfo>? filters, IReadOnlyList<ExcelPivotCalculatedFieldInfo>? calculatedFields, IReadOnlyList<ExcelPivotGroupingInfo>? groupings, bool? refreshOnOpen, bool? saveSourceData, bool? preserveFormatting, bool? enableDrill, bool hasValuesAxisField) #

Creates a pivot table info instance with Values-axis detection.

Parameters

name string required
cacheId uint required
location string? required
sourceSheet string? required
sourceRange string? required
sheetName string required
sheetIndex int required
pivotStyle string? required
layout OfficeIMO.Excel.ExcelPivotLayout required
dataOnRows bool? required
showHeaders bool? required
showEmptyRows bool? required
showEmptyColumns bool? required
showDrill bool? required
rowGrandTotals bool? required
columnGrandTotals bool? required
rowHeaderCaption string? required
columnHeaderCaption string? required
grandTotalCaption string? required
missingCaption string? required
errorCaption string? required
showDataDropDown bool? required
showDropZones bool? required
showDataTips bool? required
showMemberPropertyTips bool? required
fieldListSortAscending bool? required
customListSort bool? required
rowFields System.Collections.Generic.IReadOnlyList<string> required
columnFields System.Collections.Generic.IReadOnlyList<string> required
pageFields System.Collections.Generic.IReadOnlyList<string> required
dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo> required
fields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFieldInfo>? required
filters System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFilterInfo>? required
calculatedFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotCalculatedFieldInfo>? required
groupings System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotGroupingInfo>? required
refreshOnOpen bool? required
saveSourceData bool? required
preserveFormatting bool? required
enableDrill bool? required
hasValuesAxisField bool required

Properties

public string Name { get; } #

Gets the pivot table name.

public uint CacheId { get; } #

Gets the cache id for the pivot table.

public string? Location { get; } #

Gets the pivot table location (A1 range).

public string? SourceSheet { get; } #

Gets the source sheet name from the cache.

public string? SourceRange { get; } #

Gets the source range from the cache.

public string SheetName { get; } #

Gets the sheet name where the pivot table is defined.

public int SheetIndex { get; } #

Gets the 0-based sheet index where the pivot table is defined.

public string? PivotStyle { get; } #

Gets the pivot table style name.

public ExcelPivotLayout Layout { get; } #

Gets the pivot layout mode.

public bool? DataOnRows { get; } #

Gets whether data fields are shown on rows.

public bool? ShowHeaders { get; } #

Gets whether field headers are shown.

public bool? ShowEmptyRows { get; } #

Gets whether empty rows are shown.

public bool? ShowEmptyColumns { get; } #

Gets whether empty columns are shown.

public bool? ShowDrill { get; } #

Gets whether drill indicators are shown.

public bool? RowGrandTotals { get; } #

Gets whether row grand totals are shown.

public bool? ColumnGrandTotals { get; } #

Gets whether column grand totals are shown.

public string? RowHeaderCaption { get; } #

Gets the row header caption.

public string? ColumnHeaderCaption { get; } #

Gets the column header caption.

public string? GrandTotalCaption { get; } #

Gets the grand total caption.

public string? MissingCaption { get; } #

Gets the missing-value caption.

public string? ErrorCaption { get; } #

Gets the error-value caption.

public bool? ShowDataDropDown { get; } #

Gets whether the data drop-down is shown.

public bool? ShowDropZones { get; } #

Gets whether drop zones are shown.

public bool? ShowDataTips { get; } #

Gets whether data tips are shown.

public bool? ShowMemberPropertyTips { get; } #

Gets whether member-property tips are shown.

public bool? FieldListSortAscending { get; } #

Gets whether the field list sorts ascending.

public bool? CustomListSort { get; } #

Gets whether custom-list sorting is enabled.

public bool? RefreshOnOpen { get; } #

Gets whether Excel should refresh the pivot cache when the workbook opens.

public bool? SaveSourceData { get; } #

Gets whether source cache records are saved in the workbook package.

public bool? PreserveFormatting { get; } #

Gets whether pivot formatting is preserved during refreshes.

public bool? EnableDrill { get; } #

Gets whether pivot detail drill interaction is enabled.

public IReadOnlyList<string> RowFields { get; } #

Gets row field names.

public IReadOnlyList<string> ColumnFields { get; } #

Gets column field names.

public IReadOnlyList<string> RowSourceFields { get; internal set; } #

Source fields on the row axis, excluding the Values pseudo-field.

public IReadOnlyList<string> ColumnSourceFields { get; internal set; } #

Source fields on the column axis, excluding the Values pseudo-field.

public ExcelPivotTableAxis? ValuesAxis { get; internal set; } #

Axis containing exactly one Values pseudo-field, or null when absent or ambiguous.

public int? ValuesAxisPosition { get; internal set; } #

Zero-based position of the Values pseudo-field within its axis, or null when absent or ambiguous.

public bool HasValuesAxisField { get; } #

Whether a row or column axis includes Excel's synthetic Values field.

public IReadOnlyList<string> PageFields { get; } #

Gets page field names.

public IReadOnlyList<ExcelPivotDataFieldInfo> DataFields { get; } #

Gets data fields.

public IReadOnlyList<ExcelPivotFieldInfo> Fields { get; } #

Gets detailed field metadata.

public IReadOnlyList<ExcelPivotFilterInfo> Filters { get; } #

Gets pivot label and value filters.

public IReadOnlyList<ExcelPivotCalculatedFieldInfo> CalculatedFields { get; } #

Gets calculated pivot cache fields.

public IReadOnlyList<ExcelPivotGroupingInfo> Groupings { get; } #

Gets pivot field grouping metadata.