RowCount: Integer;
The RowCount property determines the number of strings in a legend.
Property performance depends on the ItemPlacement value.
Executing the example requires a form with the following components on it: Button, ChartBox and UiChart, that have Button1, ChartBox1 and UiChart1 identifiers respectively.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Chart: IChart;
ChartLegend: IChartLegend;
Begin
Chart := ChartBox1.Chart;
ChartLegend := Chart.Legend;
ChartLegend.ItemPlacement := ChartLegPlacement.CustomRows;
ChartLegend.RowCount := 7;
End Sub Button2OnClick;
After executing the example clicking the Button1 button changes the number of columns in the chart legend.
See also: