ILanerGroupSerie.Children

Syntax

Children: ILanerSerieList;

Description

The Children property returns the series forming a group.

Example

Executing the example requires a form with the Button1 button, the Memo component with the Memo1 identifier, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for TabSheetBox. Working area of the time series database must be loaded to UiErAnalyzer1.

Click the button to start executing this example.

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

Var

ErAn: IEaxAnalyzer;

Laner: ILaner;

Serie: ILanerSerie;

GroupSerie: ILanerGroupSerie;

i, j: Integer;

Begin

ErAn := UiErAnalyzer1.ErAnalyzer;

Laner := ErAn.Laner;

For j := 0 To Laner.SeriesList.Count - 1 Do

Serie := Laner.SeriesList.Item(j);

If Serie.Kind = LnSerieKind.Group Then

GroupSerie := Serie As ILanerGroupSerie;

GroupSerie.Expanded := True;

Memo1.Lines.Add("Series group: " + GroupSerie.Name);

For i := 0 To GroupSerie.Children.Count - 1 Do

Memo1.Lines.Add(GroupSerie.Children.Item(i).Name);

End For;

End If;

End For;

End Sub Button1OnClick;

After executing this example the information about the child series in case there are series, that form a group, in the working area, is displayed in the Memo1 component.

See also:

ILanerGroupSerie