PivotTableFormatCollection

PivotTableFormatCollection class

Represents the collection of formats applied to PivotTable.

Methods

NameDescription
add()Add a PivotTableFormat.
add()Reserved for internal use.
clear()
contains()Reserved for internal use.
formatArea(axisType, fieldPosition, subtotalType, selectionType, isGrandRow, isGrandColumn, style)Formats selected area.
get(index)Gets the format by the index.
get()Reserved for internal use.
getCount()
indexOf()Reserved for internal use.
iterator()
removeAt()

add()

Add a PivotTableFormat.

Returns: Number — Number The index of new format.

add()

Reserved for internal use.

clear()

contains()

Reserved for internal use.

formatArea(axisType, fieldPosition, subtotalType, selectionType, isGrandRow, isGrandColumn, style)

Formats selected area.

ParameterTypeDescription
axisTypeNumberPivotFieldType
fieldPositionNumberPosition of the field within the axis to which this rule applies.
subtotalTypeNumberPivotFieldSubtotalType
selectionTypeNumberPivotTableSelectionType
isGrandRowbooleanIndicates whether selecting grand total rows.
isGrandColumnbooleanIndicates whether selecting grand total columns.
styleStyleThe style which appies to the area of the pivot table.

Returns: PivotTableFormat — PivotTableFormat

get(index)

Gets the format by the index.

ParameterTypeDescription
indexNumberThe index.

Returns: PivotTableFormat — PivotTableFormat

get()

Reserved for internal use.

getCount()

indexOf()

Reserved for internal use.

iterator()

removeAt()