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 the specified series.

Comments

The Serie parameter cannot be set to Null.

Example

Executing the example requires a form with the following components: the Button component named Button1, the LanerBox component named LanerBox1, and the UiErAnalyzer component named UiErAnalyzer1. UiErAnalyzer1 is a data source for LanerBox1. A working area of the time series database should be loaded to UiErAnalyzer1. The workbook sidehead should display additional series attributes.

The example is a handler of the OnClick event for the Button1 component.

Add links to the Express, ExtCtrls, Forms, Laner, and Tab system assemblies.

    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 console window displays the name of the first displayed attribute for the first series highlighted in a workbook.

See also:

ILanerAttributeColumn