PivotField Class

PivotField class

Represents a field in a PivotTable report.


type PivotField struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetPivotItemsGets the pivot items of the pivot field
GetMaxValueGets the max value of this field.
GetMinValueGets the max value of this field.
GetGroupSettingsGets the group settings of the pivot field.
InitPivotItemsInit the pivot items of the pivot field
GroupAutomatically group the field.
Group_PivotFieldGroupOptionsGroups the pivot field with options.
GroupByCustom group the field.
UngroupUngroup the pivot field.
GetPivotFilterByTypeGets the pivot filter of the pivot field by type
GetFiltersGets all pivot filters applied for this pivot field.
ClearFilterClears filter setting on this pivot field.
FilterTop10Filters by values of data pivot field.
FilterByValueFilters by values of data pivot field.
FilterByLabelFilters by captions of row or column pivot field.
FilterByDateFilters by date values of row or column pivot field.
IsCalculatedFieldIndicates whether the this pivot field is calculated field.
GetFormulaGets the formula of the calculated field .Only works for calculated field.
IsValuesFieldIndicates whether this field represents values field.
GetBaseIndexRepresents the index in the source pivot fields.
SetBaseIndexRepresents the index in the source pivot fields.
GetPositionRepresents the index of PivotField in the region.
GetRegionTypeSpecifies the region of the pivot table that this field is displayed.
GetNameRepresents the name of PivotField.
SetNameRepresents the name of PivotField.
GetDisplayNameRepresents the display name of pivot field in the pivot table view.
SetDisplayNameRepresents the display name of pivot field in the pivot table view.
SetSubtotals_PivotFieldSubtotalType_BoolSets how to subtotal the specified field.
GetSubtotals_PivotFieldSubtotalTypeIndicates whether to show specified subtotal for this pivot field.
GetSubtotalsGets or sets the subtotals of the field. Only for Row or Column pivot field.
SetSubtotals_PivotFieldSubtotalTypeGets or sets the subtotals of the field. Only for Row or Column pivot field.
IsAutoSubtotalsIndicates whether the specified field shows automatic subtotals. Default is true.
SetIsAutoSubtotalsIndicates whether the specified field shows automatic subtotals. Default is true.
GetAllowDraggingToRowIndicates whether the specified field can be dragged to the row region.The default value is true.
SetAllowDraggingToRowIndicates whether the specified field can be dragged to the row region.The default value is true.
GetAllowDraggingToColumnIndicates whether the specified field can be dragged to the column region.The default value is true.
SetAllowDraggingToColumnIndicates whether the specified field can be dragged to the column region.The default value is true.
GetAllowDraggingToPageIndicates whether the specified field can be dragged to the page region.The default value is true.
SetAllowDraggingToPageIndicates whether the specified field can be dragged to the page region.The default value is true.
GetAllowRemovingFromViewIndicates whether this pivot field can be removed from the PivotTable view.The default value is true.
SetAllowRemovingFromViewIndicates whether this pivot field can be removed from the PivotTable view.The default value is true.
GetAllowDraggingToDataIndicates whether the specified field can be dragged to the values region.The default value is true.
SetAllowDraggingToDataIndicates whether the specified field can be dragged to the values region.The default value is true.
IsMultipleItemSelectionAllowedIndicates whether multiple items could be selected in the page field.The default value is false.
SetIsMultipleItemSelectionAllowedIndicates whether multiple items could be selected in the page field.The default value is false.
IsRepeatItemLabelsIndicates whether to repeat labels of the field in the region.The default value is false.
SetIsRepeatItemLabelsIndicates whether to repeat labels of the field in the region.The default value is false.
IsIncludeNewItemsInFilterIndicates whether to include new items to the field in manual filter.The default value is false.
SetIsIncludeNewItemsInFilterIndicates whether to include new items to the field in manual filter.The default value is false.
IsInsertPageBreaksBetweenItemsIndicates whether to insert page breaks after each item.The default value is false.
SetIsInsertPageBreaksBetweenItemsIndicates whether to insert page breaks after each item.The default value is false.
GetShowAllItemsIndicates whether to display all items in the PivotTable view,even if they don’t contain summary data.The default value is false.
SetShowAllItemsIndicates whether to display all items in the PivotTable view,even if they don’t contain summary data.The default value is false.
SortBy_SortOrderSorts this pivot field.
SortBy_SortOrder_Int_StringSorts this pivot field.
GetSortSettingGets all settings of auto sorting
GetTop10AutoShowSettingsGets the Top 10 AutoShow settings for a pivot field.
Top10AutoShowConfigures Top10 AutoShow settings for this pivot field.
GetFunctionRepresents the function used to summarize this PivotTable data field.
SetFunctionRepresents the function used to summarize this PivotTable data field.
ShowValuesAsShows values of data field as different display format when the ShowDataAs calculation is in use.
GetShowValuesSettingGets the settings of showing values as when the ShowDataAs calculation is in use.
GetCurrentPageItemRepresents the current selected page item of the page field to filter data.Only valid for page fields.
SetCurrentPageItemRepresents the current selected page item of the page field to filter data.Only valid for page fields.
GetInsertBlankRowIndicates whether to insert a blank line after each item.Only for row fields.
SetInsertBlankRowIndicates whether to insert a blank line after each item.Only for row fields.
GetShowSubtotalAtTopIndicates whether to display subtotals at the top or bottom of items when ShowInOutlineForm is true, then
SetShowSubtotalAtTopIndicates whether to display subtotals at the top or bottom of items when ShowInOutlineForm is true, then
GetShowInOutlineFormIndicates whether to layout this field in outline form on the Pivot Table view.
SetShowInOutlineFormIndicates whether to layout this field in outline form on the Pivot Table view.
GetNumberRepresents the built-in display format of numbers and dates.
SetNumberRepresents the built-in display format of numbers and dates.
Get_NumberFormatRepresents the custom display format of numbers and dates.
SetNumberFormatRepresents the custom display format of numbers and dates.
HideAllDetailsHides all details
ShowAllDetailsShow all details
GetItemsGet all labels of pivot items in this field.
GetOriginalItemsGet the original base items;
AddCalculatedItemAdd a calculated formula item to the pivot field.
GetShowCompactIndicates whether to display labels of the next field in the same column on the Pivot Table view
SetShowCompactIndicates whether to display labels of the next field in the same column on the Pivot Table view