PivotTableFormatCollection

PivotTableFormatCollection class

Represents the collection of formats applied to PivotTable.

class PivotTableFormatCollection;

Methods

MethodDescription
get(number)Gets the format by the index.
add()Add a PivotTableFormat.
formatArea(PivotFieldType, number, PivotFieldSubtotalType, PivotTableSelectionType, boolean, boolean, Style)Formats selected area.
getCount()Gets the number of elements contained in.

get(number)

Gets the format by the index.

get(index: number) : PivotTableFormat;

Parameters:

ParameterTypeDescription
indexnumberThe index.

Returns

PivotTableFormat

add()

Add a PivotTableFormat.

add() : number;

Returns

The index of new format.

formatArea(PivotFieldType, number, PivotFieldSubtotalType, PivotTableSelectionType, boolean, boolean, Style)

Formats selected area.

formatArea(axisType: PivotFieldType, fieldPosition: number, subtotalType: PivotFieldSubtotalType, selectionType: PivotTableSelectionType, isGrandRow: boolean, isGrandColumn: boolean, style: Style) : PivotTableFormat;

Parameters:

ParameterTypeDescription
axisTypePivotFieldTypeThe region of the PivotTable to which this rule applies.
fieldPositionnumberPosition of the field within the axis to which this rule applies.
subtotalTypePivotFieldSubtotalTypeThe subtotal filter type of the pivot field
selectionTypePivotTableSelectionTypeIndicates how to select data.
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

getCount()

Gets the number of elements contained in.

getCount() : number;