FactorIndex: Integer;
FactorIndex: System.Int32;
The FactorIndex property returns a child series index, if this series is a factor.
If the child series is not a factor, FactorIndex returns -1.
Executing the example requires a form with the Button1 button, the LanerBox component named LanertBox1 and the UiErAnalyzer component that is a data source for the LanerBox component. Workbook of the time series database must be loaded into UiErAnalyzer.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
pSerie: ILanerDerivedSerie;
Begin
If LanerBox1.SelectedSeriesCount > 0 Then
If LanerBox1.SelectedSeries(0) Is ILanerDerivedSerie Then
pSerie := LanerBox1.SelectedSeries(0) As ILanerDerivedSerie;
Debug.WriteLine("Series index: " + pSerie.FactorIndex.ToString);
Else
Debug.WriteLine("Series isn't a child one");
End If;
End If;
End Sub Button1OnClick;
After executing the example, the index of a highlighted series is displayed in a console window, if the series is a child one.
See also: