PivotAreaFilter

PivotAreaFilter class

Represents the filter of PivotArea for PivotTable .

Constructors

NameDescription
PivotAreaFilter

Properties

NameTypeDescription
FieldIndexint
SelectedbooleanIndicates whether this field has selection. Only works when the PivotTable is in Outline view.

Methods

NameDescription
isSubtotalSetGets which subtotal is set for this filter.
setSubtotalsSubtotal for the filter.

PivotAreaFilter()

PivotAreaFilter.FieldIndex property

Type: int

PivotAreaFilter.Selected property

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

Type: boolean

isSubtotalSet(subtotalType)

Gets which subtotal is set for this filter.

ParameterTypeDescription
subtotalTypeintA PivotFieldSubtotalType value. The subtotal function type.

setSubtotals(subtotalType, shown)

Subtotal for the filter.

ParameterTypeDescription
subtotalTypeintA PivotFieldSubtotalType value. The subtotal function.
shownbooleanIndicates if showing this subtotal data.