DisplayLegend: Boolean;
DisplayLegend: System.Boolean;
The DiaplayLegend property determines whether the chart legend is displayed in the express report table.
If the property is set to True, the legend is shown. If the property is set to False, the legend is hidden. By default this property is set to False.
The legend of the chart in the express report table is located on the right of the row header:
To execute an example, create a form, the Button1 button on it, the TabSheetBox component named TabSheetBox1 and the UiErAnalyzer component named UiErAnalyzer1. The UiErAnalyzer component is a data source for the TabSheetBox component. Determine an express report from repository in the Object property of the UiErAnalyzer component.
NOTE. Express report must contain a chart.
Add an event handler of the OnClick button:
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Analyzer: IEaxAnalyzer;
EaxGrid: IEaxGrid;
Begin
Analyzer:= UiErAnalyzer1.ErAnalyzer;
EaxGrid:= Analyzer.Grid;
EaxGrid.DisplayLegend:= Not EaxGrid.DisplayLegend;
End Sub Button1OnClick;
After executing the example the chart legend is shown or hidden for the selected express report by clicking the button.
To execute an example, create a form, the Button1 button on it, the TabSheetBoxNet component named TabSheetBoxNet1 and the UiErAnalyzerNet component named UiErAnalyzerNet1. The UiErAnalyzerNet component is a data source for the TabSheetBoxNet component. Determine an express report from repository in the Object property of the UiErAnalyzerNet component.
NOTE. Express report must contain a chart.
Add an event handler of the Click button:
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Analyzer: IEaxAnalyzer;
EaxGrid: IEaxGrid;
Begin
UiErAnalyzerNet1.Active:=True;
Analyzer:= UiErAnalyzerNet1.AnalyzerUi.ErAnalyzer;
EaxGrid:= Analyzer.Grid;
EaxGrid.DisplayLegend:= Not EaxGrid.DisplayLegend;
End Sub;
After executing the example the chart legend is shown or hidden for the selected express report by clicking the button.
See also: