PivotConditionalFormatCollection

PivotConditionalFormatCollection class

Represents all conditional formats of pivot table.

class PivotConditionalFormatCollection;

Methods

MethodDescription
get(number)Gets the pivot FormatCondition object at the specific index.
add()Adds a pivot FormatCondition to the collection.
add(number, number, PivotConditionFormatScopeType)Applies the conditional format to range which must in data region.

get(number)

Gets the pivot FormatCondition object at the specific index.

get(index: number) : PivotConditionalFormat;

Parameters:

ParameterTypeDescription
indexnumber

Returns

pivot FormatCondition object.

add()

Adds a pivot FormatCondition to the collection.

add() : number;

Returns

pivot FormatCondition object index.

Remarks

not supported

add(number, number, PivotConditionFormatScopeType)

Applies the conditional format to range which must in data region.

add(row: number, column: number, scope: PivotConditionFormatScopeType) : PivotConditionalFormat;

Parameters:

ParameterTypeDescription
rownumberThe selected row.
columnnumberThe selected column.
scopePivotConditionFormatScopeTypeThe scope

Returns

Returens PivotConditionalFormat.