ILanerAttributeColumn.MetaAttributeEx

Syntax

MetaAttributeEx(Serie: ILanerSerie): IMetaAttribute;

Parameters

Serie. The series, the displayed attribute of which must be obtained.

Description

The MetaAttributeEx property returns the displayed attribute for defined series.

Comments

The Serie parameter can not possess the Null value.

Example

Executing the 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 sidehead must display additional series attributes.

Click the button to start executing the 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(0As 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 the example, the name of the first displayed attribute for the first series, highlighted in a workbook, is displayed in a console window.

ILanerAttributeColumn