SelectedSeries(Index: Integer): ILanerSerie;
Index. Index of the selected series.
The SelectedSeries property returns series selected in the component.
The ILanerBox.SelectedSeriesCount property returns the number of series selected in the LanerBox component. Value of the Index parameter cannot exceed the value of this property.
Executing the example requires a form, a button with the Button1 identifier on the form, the LanerBox component with the LanerBox1 identifier, and the UiErAnalyzer component used as a data source for LanerBox. The workbook of the time series database should be loaded to UiErAnalyzer. 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 the Memo component shows names of the series selected in LanerBox.
See also: