ExcelPivotTableInfo
OfficeIMO.Excel
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
- Method ExcelDocument.GetPivotTables
- Method ExcelSheet.GetPivotTables
Constructors
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
- cacheId uint
- location string?
- sourceSheet string?
- sourceRange string?
- sheetName string
- sheetIndex int
- pivotStyle string?
- layout OfficeIMO.Excel.ExcelPivotLayout
- dataOnRows bool?
- showHeaders bool?
- showEmptyRows bool?
- showEmptyColumns bool?
- showDrill bool?
- rowFields System.Collections.Generic.IReadOnlyList<string>
- columnFields System.Collections.Generic.IReadOnlyList<string>
- pageFields System.Collections.Generic.IReadOnlyList<string>
- dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo>
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
- cacheId uint
- location string?
- sourceSheet string?
- sourceRange string?
- sheetName string
- sheetIndex int
- pivotStyle string?
- layout OfficeIMO.Excel.ExcelPivotLayout
- dataOnRows bool?
- showHeaders bool?
- showEmptyRows bool?
- showEmptyColumns bool?
- showDrill bool?
- rowGrandTotals bool?
- columnGrandTotals bool?
- rowHeaderCaption string?
- columnHeaderCaption string?
- grandTotalCaption string?
- missingCaption string?
- errorCaption string?
- showDataDropDown bool?
- showDropZones bool?
- showDataTips bool?
- showMemberPropertyTips bool?
- fieldListSortAscending bool?
- customListSort bool?
- rowFields System.Collections.Generic.IReadOnlyList<string>
- columnFields System.Collections.Generic.IReadOnlyList<string>
- pageFields System.Collections.Generic.IReadOnlyList<string>
- dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo>
- fields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFieldInfo>? = null
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
- cacheId uint
- location string?
- sourceSheet string?
- sourceRange string?
- sheetName string
- sheetIndex int
- pivotStyle string?
- layout OfficeIMO.Excel.ExcelPivotLayout
- dataOnRows bool?
- showHeaders bool?
- showEmptyRows bool?
- showEmptyColumns bool?
- showDrill bool?
- rowGrandTotals bool?
- columnGrandTotals bool?
- rowHeaderCaption string?
- columnHeaderCaption string?
- grandTotalCaption string?
- missingCaption string?
- errorCaption string?
- showDataDropDown bool?
- showDropZones bool?
- showDataTips bool?
- showMemberPropertyTips bool?
- fieldListSortAscending bool?
- customListSort bool?
- rowFields System.Collections.Generic.IReadOnlyList<string>
- columnFields System.Collections.Generic.IReadOnlyList<string>
- pageFields System.Collections.Generic.IReadOnlyList<string>
- dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo>
- fields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFieldInfo>? = null
- filters System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFilterInfo>? = null
- calculatedFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotCalculatedFieldInfo>? = null
- groupings System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotGroupingInfo>? = null
- refreshOnOpen bool? = null
- saveSourceData bool? = null
- preserveFormatting bool? = null
- enableDrill bool? = null
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
- cacheId uint
- location string?
- sourceSheet string?
- sourceRange string?
- sheetName string
- sheetIndex int
- pivotStyle string?
- layout OfficeIMO.Excel.ExcelPivotLayout
- dataOnRows bool?
- showHeaders bool?
- showEmptyRows bool?
- showEmptyColumns bool?
- showDrill bool?
- rowGrandTotals bool?
- columnGrandTotals bool?
- rowHeaderCaption string?
- columnHeaderCaption string?
- grandTotalCaption string?
- missingCaption string?
- errorCaption string?
- showDataDropDown bool?
- showDropZones bool?
- showDataTips bool?
- showMemberPropertyTips bool?
- fieldListSortAscending bool?
- customListSort bool?
- rowFields System.Collections.Generic.IReadOnlyList<string>
- columnFields System.Collections.Generic.IReadOnlyList<string>
- pageFields System.Collections.Generic.IReadOnlyList<string>
- dataFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotDataFieldInfo>
- fields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFieldInfo>?
- filters System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotFilterInfo>?
- calculatedFields System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotCalculatedFieldInfo>?
- groupings System.Collections.Generic.IReadOnlyList<OfficeIMO.Excel.ExcelPivotGroupingInfo>?
- refreshOnOpen bool?
- saveSourceData bool?
- preserveFormatting bool?
- enableDrill bool?
- hasValuesAxisField bool
Inherited Methods
Properties
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 bool? DataOnRows { get; } #Gets whether data fields are shown on rows.
public bool? ShowEmptyColumns { get; } #Gets whether empty columns 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? ColumnHeaderCaption { get; } #Gets the column header caption.
public bool? ShowDataDropDown { get; } #Gets whether the data drop-down is 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> 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<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.