IChartLegend.ColCount

Syntax

ColCount: Integer;

Description

The ColCount property determines the number of columns in a legend.

Comments

Property performance depends on ItemPlacement value.

Example

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.CustomColumns;
    ChartLegend.ColCount := 7;
End Sub Button1OnClick;

After executing the example clicking Button1 changes the number of columns in the chart legend.

See also:

IChartLegend