ApplyHighlight([Value: IPivotHighlightItem = Null]);
Value. Cell highlighting condition.
The ApplyHighlight method highlights data. Highlighting condition is passed in the Value parameter.
The Value parameter is not set by default and all the highlight conditions are applied for which the property value Enabled is set to True.
Sub UserProc;
Var
MB: IMetabase;
MObj: IMetabaseObject;
Expr: IEaxAnalyzer;
Grid: IEaxGrid;
Condition: IPivotHighlightItem;
Begin
MB:=MetabaseClass.Active;
MObj:=MB.ItemById("EXPRESS_REPORT").Edit;
Expr:=MObj As IEaxAnalyzer;
Grid:=Expr.Grid;
Condition:=Expr.Pivot.Highlight.Add;
Condition.ConditionType:=PivotHighlightType.GA;
Condition.ConditionValueA:=10000;
Condition.Area:=PivotFilterArea.Table;
Grid.ApplyHighlight(Condition);
MObj.Save;
End Sub UserProc;
After executing the example all table cells that have value greater than 10,000 are highlighted in the express report. Express report identifier - EXPRESS_REPORT.
See also: