Move(Index: Integer; IndexBefore: Integer);
Move(Index: Integer; IndexBefore: Integer);
Index. Index of a series, which must be moved.
IndexBefore. Index of the series, after which the moved series must be placed.
The Move method moves the series within one relative group of chart series.
Indexes of series are specified within one relative series group, in which the movement is executed.
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(0, 1);
End Sub Button1OnClick;
After executing the example on clicking the Button1 component the specified series is moved within its relative series group.
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.
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(0, 1);
End Sub;
After executing the example on clicking the Button1 component the specified series is moved within its relative series group.
See also: