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
GetGroupSettingsGets the group settings of the pivot field.
InitPivotItemsInit the pivot items of the pivot field
GroupBy_Double_BoolAutomatically group the field with internal
GroupBy_Date_Date_PivotGroupByTypeArray_Double_BoolGroup the file by the date group types.
GroupBy_Double_Double_Double_BoolGroup the file by number.
GroupBy_CustomPiovtFieldGroupItemArray_BoolCustom 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 PivotTable 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.
SetSubtotalsSets how to subtotal the specified field.
GetSubtotalsIndicates whether to show specified subtotal for this pivot field.
IsAutoSubtotalsIndicates whether the specified field shows automatic subtotals. Default is true.
SetIsAutoSubtotalsIndicates whether the specified field shows automatic subtotals. Default is true.
GetDragToColumnIndicates whether the specified field can be dragged to the column position.The default value is true.
SetDragToColumnIndicates whether the specified field can be dragged to the column position.The default value is true.
GetDragToHideIndicates whether the specified field can be dragged to the hide region.The default value is true.
SetDragToHideIndicates whether the specified field can be dragged to the hide region.The default value is true.
GetDragToRowIndicates whether the specified field can be dragged to the row region.The default value is true.
SetDragToRowIndicates whether the specified field can be dragged to the row region.The default value is true.
GetDragToPageIndicates whether the specified field can be dragged to the page position.The default value is true.
SetDragToPageIndicates whether the specified field can be dragged to the page position.The default value is true.
GetDragToDataIndicates whether the specified field can be dragged to the values region.The default value is true.
SetDragToDataIndicates 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_SortOrder_IntSorts this pivot field.
SortBy_SortOrder_Int_PivotLineType_StringSorts this pivot field.
GetNonAutoSortDefaultIndicates whether a sort operation that will be applied to this pivot field is an autosort operation or a simple data sort.
SetNonAutoSortDefaultIndicates whether a sort operation that will be applied to this pivot field is an autosort operation or a simple data sort.
IsAutoSortIndicates whether the items of this PivotTable field are automatically sorted.
SetIsAutoSortIndicates whether the items of this PivotTable field are automatically sorted.
IsAscendSortIndicates whether the items of this pivot field is autosorted ascending.
SetIsAscendSortIndicates whether the items of this pivot field is autosorted ascending.
GetSortSettingGets all settings of auto sorting
GetAutoSortFieldRepresents the index of field which is auto sorted.-1 means PivotField itself,others means the position of the data fields.
SetAutoSortFieldRepresents the index of field which is auto sorted.-1 means PivotField itself,others means the position of the data fields.
IsAutoShowIndicates whether the specified PivotTable field is automatically shown.
SetIsAutoShowIndicates whether the specified PivotTable field is automatically shown.
IsAscendShowIndicates whether the specified PivotTable field is autoshown ascending.
SetIsAscendShowIndicates whether the specified PivotTable field is autoshown ascending.
GetAutoShowCountRepresent the number of top or bottom itemsthat are automatically shown in the specified PivotTable field.
SetAutoShowCountRepresent the number of top or bottom itemsthat are automatically shown in the specified PivotTable field.
GetAutoShowFieldRepresents auto show field index. -1 means PivotField itself.It should be the index of the data fields.
SetAutoShowFieldRepresents auto show field index. -1 means PivotField itself.It should be the index of the data fields.
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.
SetInsertBlankRowIndicates whether to insert a blank line after each item.
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.
IsHiddenItemGets whether the specific PivotItem is hidden.
HideItem_Int_BoolSets whether the specific PivotItem in a data field is hidden.
IsHiddenItemDetailGets whether to hide the detail of the specific PivotItem..
HideItemDetailSets whether the specific PivotItem in a pivot field is hidden detail.
HideDetailSets whether the detail of all PivotItems in a pivot field are hidden.That is collapse/expand this field.
HideItem_String_BoolSets whether the specific PivotItem in a data field is hidden.
GetItemsGet all labels of pivot items in this field.
GetOriginalItemsGet the original base items;
GetItemCountGets the count of the base items in this pivot field.
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