ILanerGroupSerie.Children

Syntax

Children: ILanerSerieList;

Description

The Children property returns the series forming a group.

Example

Executing the example requires a form with the following components: the Button component named Button1, the Memo component named Memo1, the TabSheetBox component named TabSheetBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for TabSheetBox1. A working area of the time series database should be loaded to UiErAnalyzer1. 

The example is a handler of the OnClick event for the Button1 component.

Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.

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 the 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