PivotAreaFilter

PivotAreaFilter class

Represents the filter of PivotArea for PivotTable.

new PivotAreaFilter()

Methods

NameDescription
getFieldIndex()
getSelected()Indicates whether this field has selection. Only works when the PivotTable is in Outline view.
isSubtotalSet(subtotalType)Gets which subtotal is set for this filter.
setSelected()Indicates whether this field has selection. Only works when the PivotTable is in Outline view.
setSubtotals(subtotalType, shown)Subtotal for the filter.

getFieldIndex()

getSelected()

Indicates whether this field has selection. Only works when the PivotTable is in Outline view.

isSubtotalSet(subtotalType)

Gets which subtotal is set for this filter.

ParameterTypeDescription
subtotalTypeNumberPivotFieldSubtotalType

Returns: boolean — boolean

setSelected()

Indicates whether this field has selection. Only works when the PivotTable is in Outline view.

setSubtotals(subtotalType, shown)

Subtotal for the filter.

ParameterTypeDescription
subtotalTypeNumberPivotFieldSubtotalType
shownbooleanIndicates if showing this subtotal data.