Express > Express Assembly Interfaces > ILanerBox > ILanerBox.SelectedSeries
SelectedSeries(Index: Integer): ILanerSerie;
Index. Index of the selected series.
The SelectedSeries property returns series selected in the component.
The number of series selected in LanerBox is returned by the ILanerBox.SelectedSeriesCount property. Value of the Index parameter cannot exceed the value of this property.
Executing the example requires a form with a button with the Button1 identifier on the form, the LanerBox component with the LanerBox1 identifier and the UiErAnalyzer component that is a data source for LanerBox. A workbook of the time series database should be loaded to UiErAnalyzer1. The form should also contain the Memo component with the Memo1 identifier.
This procedure should be assigned as a handler of the OnClick event for the button. The example is executed on clicking the button.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
SeriesCount: Integer;
i: Integer;
Serie: ILanerSerie;
Begin
SeriesCount := LanerBox1.SelectedSeriesCount;
For i := 0 To SeriesCount - 1 Do
Serie := LanerBox1.SelectedSeries(i);
Memo1.Lines.Add(Serie.Name);
End For;
End Sub Button1OnClick;
After executing the example, names of the series selected in LanerBox are displayed in the Memo component.
See also: