ILanerAttributeColumns.Column

Syntax

Column(Index: Integer): ILanerColumn;

Parameters

Index. Attribute index.

Description

The Column property returns the column of a workbook sidehead that displays the specified attribute.

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 a time series database should be loaded to UiErAnalyzer1. Data edit mode should be enabled for the workbook.

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
    Laner: ILaner;
    Columns: ILanerAttributeColumns;
    Col: ILanerColumn;
    i: Integer;
Begin
    Laner := UiErAnalyzer1.ErAnalyzer.Laner;
    Columns := Laner.AttributeColumns;
    Debug.WriteLine(Columns.Count);
    For i := 0 To Columns.Count - 1 Do
        Col := Columns.Column(i);
        If Col.Type <> LnColumnType.Inversion Then
            Col.ReadOnly := False;
        End If;
    End For;
End Sub Button1OnClick;

After executing the example all columns of a workbook sidehead are available for editing, except for the column displaying initial transformations of data series.

See also:

ILanerAttributeColumns