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