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, the Button1 button with identifier located on this form, the LanerBox component LanerBox1 identifier, and the UiErAnalyzer component that is used as data source for LanerBox. The workbook of the time series database is to be loaded to UiErAnalyzer. The Memo component with the identifier Memo1 is also to be available on the form.
This procedure is to be assigned as a handler of the OnClick event for this 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 this example the Memo component shows names of the series selected in LanerBox.
See also: