PivotFormatCondition

PivotFormatCondition class

Represents a PivotTable Format Condition in PivotFormatCondition Collection.

Properties

NameTypeDescription
ScopeTypeNumberGet and set scope type for the pivot table condition format . The value of the property is PivotConditionFormatScopeType
RuleTypeNumberGet and set rule type for the pivot table condition format . The value of the property is PivotConditionFormatRuleType i
FormatConditionsFormatConditionCollectionGet formatconditions for the pivot table condition format .

Methods

NameDescription
addDataAreaConditionAdds PivotTable conditional format limit in the data fields.
addRowAreaConditionAdds PivotTable conditional format limit in the row fields.
addColumnAreaConditionAdds PivotTable conditional format limit in the column fields.
setConditionalAreasSets conditional areas of PivotFormatCondition object.

PivotFormatCondition.ScopeType property

Get and set scope type for the pivot table condition format . The value of the property is PivotConditionFormatScopeType integer constant.

Type: Number

PivotFormatCondition.RuleType property

Get and set rule type for the pivot table condition format . The value of the property is PivotConditionFormatRuleType integer constant.

Type: Number

PivotFormatCondition.FormatConditions property

Get formatconditions for the pivot table condition format .

Type: FormatConditionCollection

addDataAreaCondition(fieldName) (1 of 2)

Adds PivotTable conditional format limit in the data fields.

ParameterTypeDescription
fieldNameStringThe name of PivotField.

addDataAreaCondition(dataField) (2 of 2)

Adds PivotTable conditional format limit in the data fields.

ParameterTypeDescription
dataFieldPivotFieldThe PivotField in the data fields.

addRowAreaCondition(fieldName) (1 of 2)

Adds PivotTable conditional format limit in the row fields.

ParameterTypeDescription
fieldNameStringThe name of PivotField.

addRowAreaCondition(rowField) (2 of 2)

Adds PivotTable conditional format limit in the row fields.

ParameterTypeDescription
rowFieldPivotFieldThe PivotField in the row fields.

addColumnAreaCondition(fieldName) (1 of 2)

Adds PivotTable conditional format limit in the column fields.

ParameterTypeDescription
fieldNameStringThe name of PivotField.

addColumnAreaCondition(columnField) (2 of 2)

Adds PivotTable conditional format limit in the column fields.

ParameterTypeDescription
columnFieldPivotFieldThe PivotField in the column fields.

setConditionalAreas()

Sets conditional areas of PivotFormatCondition object.