IChartStyleRelativeGroup.Move

Syntax

Move(Index: Integer; IndexBefore: Integer);

Parameters

Index. Index of a series, which must be moved.

IndexBefore. Index of the series, after which the moved series must be placed.

Description

The Move method moves the series within one relative group of chart series.

Comments

Indexes of series are specified within one relative series group, in which the movement is executed.

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).Move(01);
End Sub Button1OnClick;

After executing the example on clicking the Button1 component the specified series is moved within its relative series group.

See also:

IChartStyleRelativeGroup