IChartStyleRelativeGroup.Move

Fore Syntax

Move(Index: Integer; IndexBefore: Integer);

Fore.NET Syntax

Move(Index: Integer; IndexBefore: Integer);

Parameters

Index. Index of a series which needs to be moved.

IndexBefore. Index of a series after which the moving series needs to 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 group of series in which the movement is performed.

Fore Example

Executing the example requires a form with the UiChart, ChartBox and Button components located on it with UiChart1, ChartBox1 and Button1 identifiers correspondingly. UiChart1 component must be a data source for 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 group of series.

Fore.NET Example

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

Imports Prognoz.Platform.Interop.Chart;

Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
    Chart: IChart;
Begin
    Chart := ChartBoxNet1.CtrlBox.Chart;
    Chart.StyleGroup.Item[1].Move(01);
End Sub;

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

See also:

IChartStyleRelativeGroup