PivotConditionalFormat
Contents
[
Hide
]PivotConditionalFormat class
Represents a PivotTable Format Condition in PivotFormatCondition Collection.
class PivotConditionalFormat;
Properties
Property | Type | Description |
---|---|---|
pivotAreas | PivotAreaCollection | Readonly. Gets all pivot areas. |
formatConditions | FormatConditionCollection | Readonly. Get conditions for the pivot table conditional format . |
scopeType | PivotConditionFormatScopeType | Get and set scope type for the pivot table conditional format . |
ruleType | PivotConditionFormatRuleType | Get and set rule type for the pivot table condition format . |
Methods
Method | Description |
---|---|
getCellAreas() | Gets all cell areas where this conditional format applies to. |
addCellArea(CellArea) | Adds an area based on pivot table view. |
applyTo(number, number, PivotConditionFormatScopeType) | Applies the conditional format to range. Only for the data region. |
addFieldArea(PivotFieldType, string) | Adds an area of pivot field. |
addFieldArea(PivotFieldType, PivotField) | Adds an area of pivot field. |
pivotAreas
Readonly. Gets all pivot areas.
pivotAreas : PivotAreaCollection;
formatConditions
Readonly. Get conditions for the pivot table conditional format .
formatConditions : FormatConditionCollection;
scopeType
Get and set scope type for the pivot table conditional format .
scopeType : PivotConditionFormatScopeType;
ruleType
Get and set rule type for the pivot table condition format .
ruleType : PivotConditionFormatRuleType;
getCellAreas()
Gets all cell areas where this conditional format applies to.
getCellAreas() : CellArea[];
Returns
CellArea[]
addCellArea(CellArea)
Adds an area based on pivot table view.
addCellArea(ca: CellArea) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
ca | CellArea | The cell area. |
applyTo(number, number, PivotConditionFormatScopeType)
Applies the conditional format to range. Only for the data region.
applyTo(row: number, column: number, scope: PivotConditionFormatScopeType) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
row | number | The selected row. |
column | number | The selected column. |
scope | PivotConditionFormatScopeType | The scope |
addFieldArea(PivotFieldType, string)
Adds an area of pivot field.
addFieldArea(axisType: PivotFieldType, fieldName: string) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
axisType | PivotFieldType | The region type. |
fieldName | string | The name of pivot field. |
addFieldArea(PivotFieldType, PivotField)
Adds an area of pivot field.
addFieldArea(axisType: PivotFieldType, field: PivotField) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
axisType | PivotFieldType | The region type. |
field | PivotField | The pivot field. |