Column(Index: Integer): ILanerColumn;
Index. Attribute index.
The Column property returns the column of a workbook sidehead that displays defined attribute.
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.
Click the button to start executing this example. The data edit mode must be turned on for a workbook.
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 the column, displaying initial transformations of data series.
See also: