ILanerBox.UngroupSeries

Syntax

UngroupSeries(Series: ILanerSeriesSet);

Parameters

Series: A set of workbook series to be ungrouped.

Description

The UngroupSeries method ungroups a group of series in the workbook.

Example

Executing the example requires a form with a button on named Button1, the LanerBox component named LanerBox1 and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer1.

The example is executed on clicking the button.

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

Var

ErAn: IEaxAnalyzer;

Laner: ILaner;

Ser: ILanerSeries;

SeriesSet: ILanerSeriesSet;

i: Integer;

SelSer: ILanerSerie;

Begin

ErAn := UiErAnalyzer1.ErAnalyzer;

Laner := ErAn.Laner;

Ser := Laner.Series;

SeriesSet := Ser.CreateSet;

For i := 0 To LanerBox1.SelectedSeriesCount - 1 Do

SelSer := LanerBox1.SelectedSeries(i);

SeriesSet.Add(SelSer);

End For;

LanerBox1.UngroupSeries(SeriesSet);

End Sub Button1OnClick;

After executing the example the groups including selected workbook series are ungrouped.

See also:

ILanerBox