IChartStyleRelativeGroup.MoveTo

Syntax

MoveTo(Index: Integer; RelativeGroupIndex: Integer; ToTheBeginning: Boolean);

Parameters

Index. Absolute index of the series, which must be moved.

RelativeGroupIndex. Index of the relative group, to which the specified series must be moved.

ToTheBeginning. Indicates whether a series must be moved to the top or to the bottom of the relative group of chart series.

Description

The MoveTo method moves the series from one relative group of chart series to another one.

Comments

Absolute index of a series is a sequence number of the specified series among all chart series.

Example

Executing the example requires a form with the UiChart, ChartBox and Button components on the form with the UiChart1, ChartBox1 and Button1 identifiers respectively. The UiChart1 component must be a data source for the ChartBox1 component, and it must have the Mixed type of a scale for a chart.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBox1.Chart;
    Chart.StyleGroup.Item(0).MoveTo(01True);
End Sub Button1OnClick;

After executing the example on clicking the Button1 component the specified series is moved from one relative series group to another one.

See also:

IChartStyleRelativeGroup