MetaAttributeEx(Serie: ILanerSerie): IMetaAttribute;
Serie. The series, the displayed attribute of which must be obtained.
The MetaAttributeEx property returns the displayed attribute for defined series.
The Serie parameter can not possess the Null value.
Executing this example requires a form with the Button1 button, the LanerBox component named LanerBox1 and the UiErAnalyzer component named UiErAnalyzer1 which is used as a data source for LanerBox. Workbook of the time series database must be loaded to UiErAnalyzer1. Workbook side head must display additional series attributes.
Click the button to start executing this example.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
ErAn: IEaxAnalyzer;
Laner: ILaner;
LanerAttr: ILanerAttributeColumns;
LanerA: ILanerAttributeColumn;
SourSerie: ILanerSerie;
Begin
ErAn := UiErAnalyzer1.ErAnalyzer;
Laner := ErAn.Laner;
LanerAttr := Laner.AttributeColumns;
If LanerAttr.Count > 0 Then
If LanerAttr.Column(0).Type = LnColumnType.Attribute Then
LanerA := LanerAttr.Column(0) As ILanerAttributeColumn;
If LanerBox1.SelectedSeriesCount > 0 Then
SourSerie := LanerBox1.SelectedSeries(0);
Debug.WriteLine(LanerA.MetaAttributeEx(SourSerie).Name);
End If;
End If;
End If;
End Sub Button1OnClick;
After executing this example, the name of the first displayed attribute for the first series, highlighted in a workbook, is displayed in a console window.
See also: