Skip to main content

ApiPivotField

Represents the ApiPivotField class.

Properties

NameTypeDescription
CaptionstringReturns or sets a value that represents the label text for the pivot field.
CurrentPagestring | numberReturns the current page which is displayed for the page field (valid only for page fields).
DragToColumnbooleanReturns or sets the setting which specifies whether the specified field can be dragged to the column position.
DragToDatabooleanReturns or sets the setting which specifies whether the specified field can be dragged to the data position.
DragToPagebooleanReturns or sets the setting which specifies whether the specified field can be dragged to the page position.
DragToRowbooleanReturns or sets the setting which specifies whether the specified field can be dragged to the row position.
FormulanumberReturns or sets a value that represents the object's formula.
IndexnumberReturns an index for the pivot table field.
LayoutBlankLinebooleanReturns and sets the setting which specifies whether to insert blank rows after each item.
LayoutCompactRowbooleanReturns or sets the setting which specifies whether a pivot table field is compacted.
LayoutFormnumberReturns or sets the way the specified pivot table items appear — in table format or in outline format.
LayoutPageBreakbooleanReturns or sets the setting which specifies whether to insert a page break after each field.
LayoutSubtotalLocationnumberReturns or sets the layout subtotal location.
LayoutSubtotalsbooleanReturns or sets the setting which specifies whether to show subtotals.
NamestringReturns or sets a value representing the object name.
NumberFormatstring | nullReturns or sets a value that represents the format code for the object.
OrientationnumberReturns or sets a pivot field orientation value that represents the location of the field in the specified pivot table report.
ParentApiPivotTableReturns the parent object for the current field.
PivotItemsApiPivotItem | ApiPivotItem[]Returns an object that represents either a single pivot table item (the ApiPivotItem object)\ or a collection of all the visible and hidden items (an array of the ApiPivotItem objects) in the specified field.
PositionnumberReturns or sets a value that represents the position of the field (first, second, third, and so on) among all the fields in its orientation (Rows, Columns, Pages, Data).
RepeatLabelsbooleanReturns or sets the setting which specifies whether to repeat items labels at each row.
ShowAllItemsbooleanReturns or sets the setting which specifies whether to show items with no data.
ShowingInAxisbooleanReturns the setting which specifies whether the pivot table field is currently visible in the pivot table.
SourceNamestringReturns a source name for the pivot table field.
SubtotalNamestringReturns or sets the text label displayed in the subtotal column or row heading in the specified pivot table report.
SubtotalsobjectReturns or sets the subtotals.
TableApiPivotTableReturns the ApiPivotTable object which represents the pivot table for the current field.
ValuestringReturns or sets a value representing the name of the specified field in the pivot table report.

Methods

MethodReturnsDescription
ClearAllFiltersNoneDeletes all filters currently applied to the pivot field.
ClearLabelFiltersNoneDeletes all label filters or all date filters from the pivot filters collection.
ClearManualFiltersNoneDeletes all manual filters from the pivot filters collection.
ClearValueFiltersNoneDeletes all value filters from the pivot filters collection.
GetCaptionstringReturns a value that represents the label text for the pivot field.
GetCurrentPagestring | numberReturns the current page which is displayed for the page field (valid only for page fields).
GetDragToColumnbooleanReturns the setting which specifies whether the specified field can be dragged to the column position.
GetDragToDatabooleanReturns the setting which specifies whether the specified field can be dragged to the data position.
GetDragToPagebooleanReturns the setting which specifies whether the specified field can be dragged to the page position.
GetDragToRowbooleanReturns the setting which specifies whether the specified field can be dragged to the row position.
GetIndexnumberReturns an index for the pivot table field.
GetLayoutBlankLinebooleanReturns the setting which specifies whether to insert blank rows after each item.
GetLayoutCompactRowbooleanReturns the setting which specifies whether a pivot table field is compacted.
GetLayoutFormPivotLayoutTypeReturns the way the specified pivot table items appear — in table format or in outline format.
GetLayoutPageBreakbooleanReturns the setting which specifies whether to insert a page break after each field.
GetLayoutSubtotalLocationLayoutSubtotalLocationTypeReturns the layout subtotal location.
GetLayoutSubtotalsbooleanReturns the setting which specifies whether to show subtotals.
GetNamestringReturns a value representing the object name.
GetOrientationPivotFieldOrientationTypeReturns a pivot field orientation value that represents the location\ of the field in the specified pivot table report.
GetParentApiPivotTableReturns the parent object for the current field.
GetPivotItemsApiPivotItem[] | ApiPivotItem | nullReturns an object that represents either a single pivot table item (the ApiPivotItem object)\ or a collection of all the visible and hidden items (an array of the ApiPivotItem objects) in the specified field.
GetPositionnumberReturns a value that represents the position of the field (first, second, third, and so on)\ among all the fields in its orientation (Rows, Columns, Pages, Data).
GetRepeatLabelsbooleanReturns the setting which specifies whether to repeat items labels at each row.
GetShowAllItemsbooleanReturns the setting which specifies whether to show items with no data.
GetShowingInAxisbooleanReturns the setting which specifies whether the pivot table field is currently visible in the pivot table.
GetSourceNamestringReturns a source name for the pivot table field.
GetSubtotalNamestringReturns the text label displayed in the subtotal column or row heading in the specified pivot table report.
GetSubtotalsPivotFieldSubtotalsReturns an object that represents all subtotals.
GetTableApiPivotTableReturns the ApiPivotTable object which represents the pivot table for the current field.
GetValuestringReturns a value representing the name of the specified field in the pivot table report.
MoveNoneMoves the current pivot field inside the category.
RemoveNoneRemoves the current pivot field from the pivot table.
SetCaptionNoneSets a value that represents the label text for the pivot field.
SetDragToColumnNoneSets the setting which specifies whether the specified field can be dragged to the column position.
SetDragToDataNoneSets the setting which specifies whether the specified field can be dragged to the data position.
SetDragToPageNoneSets the setting which specifies whether the specified field can be dragged to the page position.
SetDragToRowNoneSets the setting which specifies whether the specified field can be dragged to the row position.
SetLayoutBlankLineNoneSets the setting which specifies whether to insert blank rows after each item.
SetLayoutCompactRowNoneSets the setting which specifies whether a pivot table field is compacted.
SetLayoutFormNoneSets the way the specified pivot table items appear — in table format or in outline format.
SetLayoutPageBreakNoneSets the setting which specifies whether to insert a page break after each field.
SetLayoutSubtotalLocationNoneSets the layout subtotal location.
SetLayoutSubtotalsNoneSets the setting which specifies whether to show subtotals.
SetNameNoneSets a value representing the object name.
SetOrientationNoneSets a pivot field orientation value that represents the location\ of the field in the specified pivot table report.
SetPositionNoneSets a value that represents the position of the field (first, second, third, and so on)\ among all the fields in its orientation (Rows, Columns, Pages, Data).
SetRepeatLabelsNoneSets the setting which specifies whether to repeat items labels at each row.
SetShowAllItemsNoneSets the setting which specifies whether to show items with no data.
SetSubtotalNameNoneSets the text label displayed in the subtotal column or row heading in the specified pivot table report.
SetSubtotalsNoneSets an object that represents all subtotals.
SetValueNoneSets a value representing the name of the specified field in the pivot table report.