ILanerSerie.MoveToParent

Syntax

MoveToParent(Parent: ILanerGroupSerie; Index: Integer);

Parameters

Parent is the series group, into which the series needs to be moved.

Index is the position of the series in the group.

Description

The MoveToParent method moves a series into defined series group.

Example

Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. Workbook of the time series database must be loaded to UiErAnalyzer1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

ErA: IEaxAnalyzer;

Laner: ILaner;

Series: ILanerSeries;

Group: ILanerGroupSerie;

Serie: ILanerSerie;

Begin

ErA := UiErAnalyzer1.ErAnalyzer;

Laner := ErA.Laner;

Series := Laner.Series;

Group := Series.AddEmptyGroup("New group");

Serie := Series.Item(0);

Serie.MoveToParent(Group, 0);

End Sub Button1OnClick;

After executing the example an empty group of series is added. After that the workbook first series is placed to the group.

See also:

ILanerSerie