IChartStyleRelativeGroup.MoveTo

Fore Syntax

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

Fore.NET Syntax

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

Parameters

Index. Absolute index of the series which needs to be relocated.

RelativeGroupIndex. Index of the relative group to which the specified series needs to be relocated.

ToTheBeginning. A sign denoting the necessity of moving series to the top or to the end of the relative group of chart series.

Description

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

Comments

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

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

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

Fore.NET Example

Executing the example requires a form with the UiChartNet, ChartBoxNet and Button components located on it with UiChartNet1, ChartBoxNet1 and Button1 identifiers correspondingly. UiChartNet1 component must be a data source for ChartBoxNet1 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[0].MoveTo(01True);
End Sub;

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

See also:

IChartStyleRelativeGroup