ILanerAttributeColumns.Remove

Syntax

Remove(Index: Integer): Boolean;

Parameters

Index. Attribute index in the collection.

Description

The Remove method removes the attribute from the collection by its index. It returns True in case of success.

Example

Executing the example requires a form with the Button1 button, the TabSheetBox component and the UiErAnalyzer component named UiErAnalyzer1 that is a data source for TabSheetBox. Working area of the time series database must be loaded to UiErAnalyzer1. Displaying of several additional attributes should be set for working area series.

Click the button to start executing this example.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

ErAn: IEaxAnalyzer;

Laner: ILaner;

LanerAttr: ILanerAttributeColumns;

Begin

ErAn := UiErAnalyzer1.ErAnalyzer;

Laner := ErAn.Laner;

Laner.BeginUpdate;

LanerAttr := Laner.AttributeColumns;

LanerAttr.Remove(0);

Laner.EndUpdate;

End Sub Button1OnClick;

After executing this example, the first element is deleted from the collection of displayed attributes.

See also:

ILanerAttributeColumns