Add: IPivotHighlightItem;
The Add method creates a new condition of table data highlighting.
Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1, which is used as a data source for the TabSheetBox component.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
OLAP: IEaxAnalyzer;
Pivot: IPivot;
Table: IPivotTable;
HighItems: IPivotHighlightItems;
HighItem: IPivotHighlightItem;
Begin
OLAP := UiErAnalyzer1.ErAnalyzer;
Pivot := OLAP.Pivot;
Table := Pivot.ObtainTable;
HighItems := Pivot.Highlight;
HighItem := HighItems.Add;
HighItem.ConditionType := PivotHighlightType.ALargest;
HighItem.ConditionValueA := 3;
HighItem.Area := PivotFilterArea.Table;
HighItem.Enabled := True;
OLAP.Grid.ApplyHighlight(HighItem);
End Sub Button1OnClick;
After executing this example, clicking the button creates a new condition of data highlighting in the table of an express report, that was loaded into UiErAnalyzer1 component. Cells, containing three maximum values, are highlighted.
See also: