PivotArea

PivotArea class

Presents the selected area of the PivotTable.

Constructors

NameDescription
PivotAreaPresents the selected area of the PivotTable.

Properties

NameTypeDescription
FiltersPivotAreaFilterCollectionGets all filters for this PivotArea.
OnlyDatabooleanIndicates whether only the data values (in the data area of the view) for an item selection are selected and does not in
OnlyLabelbooleanIndicates whether only the data labels for an item selection are selected.
IsRowGrandIncludedbooleanIndicates whether the row grand total is included.
IsColumnGrandIncludedbooleanIndicates whether the column grand total is included.
AxisTypeNumberGets and sets the region of the PivotTable to which this rule applies. The value of the property is PivotFieldType integ
RuleTypeNumberGets and sets the type of selection rule. The value of the property is PivotAreaType integer constant.
IsOutlinebooleanIndicates whether the rule refers to an area that is in outline mode.

Methods

NameDescription
selectSelect the area with filters.
selectField
getCellAreas

PivotArea(table)

Presents the selected area of the PivotTable.

ParameterTypeDescription
tablePivotTable

PivotArea.Filters property

Gets all filters for this PivotArea.

Type: PivotAreaFilterCollection

PivotArea.OnlyData property

Indicates whether only the data values (in the data area of the view) for an item selection are selected and does not include the item labels.

Type: boolean

PivotArea.OnlyLabel property

Indicates whether only the data labels for an item selection are selected.

Type: boolean

PivotArea.IsRowGrandIncluded property

Indicates whether the row grand total is included.

Type: boolean

PivotArea.IsColumnGrandIncluded property

Indicates whether the column grand total is included.

Type: boolean

PivotArea.AxisType property

Gets and sets the region of the PivotTable to which this rule applies. The value of the property is PivotFieldType integer constant.

Type: Number

PivotArea.RuleType property

Gets and sets the type of selection rule. The value of the property is PivotAreaType integer constant.

Type: Number

PivotArea.IsOutline property

Indicates whether the rule refers to an area that is in outline mode.

Type: boolean

select(axisType, fieldPosition, selectionType)

Select the area with filters.

ParameterTypeDescription
axisTypeNumberA PivotFieldType value. The region of the PivotTable to which this rule applies.
fieldPositionNumberPosition of the field within the axis to which this rule applies.
selectionTypeNumberA PivotTableSelectionType value. Specifies what can be selected in a PivotTable during a structured selection.

selectField(axisType, fieldName) (1 of 2)


selectField(axisType, field) (2 of 2)

getCellAreas()