ILanerBox.Paste

Syntax

Paste(StartIndex: Integer;[ Parent: ILanerGroupSerie = Null]);

Parameters

StartIndex: Position to which the series are to be inserted.

Parent: Parent group of series. Optional.

Description

The Paste method pastes a group of series from the clipboard to the workbook.

Example

Executing the example requires a form, a button with the Button1 name, located on the form, the LanerBox component with the LanerBox1 name, and the UiErAnalyzer component with the UiErAnalyzer1 name, that is used as the data source for the LanerBox. The workbook of time series database is to be loaded to the 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.Copy(SeriesSet);

LanerBox1.Paste(0);

End Sub Button1OnClick;

After executing the example selected workbook series are copied and then pasted to the beginning of the data table.

See also:

ILanerBox