Move(IndexFrom: Integer, IndexTo: Integer);
IndexFrom. Position index of the attribute that needs shifting.
IndexTo. Index of the position, into which the attribute should be shifted.
The Move method shifts the attribute in the collection.
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.Move(0, LanerAttr.Count - 1);
Laner.EndUpdate;
End Sub Button1OnClick;
After executing this example, the first element from the collection of displayed attributes is put to the end of the collection.
See also: