ILanerSeries.RemoveGroupedByKey

Syntax

RemoveGroupedByKey(Key: Integer): Boolean;

Parameters

Key: Series key.

Description

The RemoveGroupedByKey method removes the series from the collection by its key considering the user groups hierarchy.

Example

Executing this example requires a form with the Button1 button, 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.

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

Var

ErA: IEaxAnalyzer;

Laner: ILaner;

Series: ILanerSeries;

Serie: ILanerSerie;

Begin

ErA := UiErAnalyzer1.ErAnalyzer;

Laner := ErA.Laner;

Series := Laner.Series;

Serie := LanerBox1.SelectedSeries(0);

Series.RemoveGroupedByKey(Serie.Key);

End Sub Button1OnClick;

After executing this example the first series is removed from the workbook considering the user groups hierarchy.

See also:

ILanerSeries