RowCount: Integer;
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.
Executing the example requires a form with the following components placed on this form: Button, ChartBoxNet and UiChartNet, that have respective identifiers Button1, ChartBoxNet1 and UiChartNet1.
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Chart: IChart;
ChartLegend: IChartLegend;
Begin
Chart := ChartBoxNet1.CtrlBox.Chart;
ChartLegend := Chart.Legend;
ChartLegend.ItemPlacement := ChartLegPlacement.clpCustomRows;
ChartLegend.RowCount := 7;
End Sub;
After executing the example clicking the Button1 button changes the number of columns in the chart legend.
See also: