ILanerGroupSerie.CanAddChildren

Syntax

CanAddChildren:Boolean;

Description

The CanAddChildren property returns whether child series can be added to the series group.

Comments

Available values:

Example

Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A working area of the time series database must be loaded to UiErAnalyzer1. There must be two data series selected in the workbook.

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

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

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Serie: ILanerSerie;
    GroupSerie: ILanerGroupSerie;
Begin
    If LanerBox1.SelectedSeriesCount > 0 Then
        Serie := LanerBox1.SelectedSeries(0);
        If Serie Is ILanerGroupSerie Then
            GroupSerie := Serie As ILanerGroupSerie;
            Serie := LanerBox1.SelectedSeries(1);
            If GroupSerie.CanAddChildren Then
                Serie.MoveToParent(GroupSerie, 0);
                Else WinApplication.InformationBox("Series cannot be moved '" + Serie.Name
                    + "' to group '" + GroupSerie.Name + "'");
            End If;
        End If;
    End If;
End Sub Button1OnClick;

After executing the example the second selected series is moved to the first selected series as a child series. If such movement operation is unavailable, the information message is displayed.

See also:

ILanerGroupSerie