Express > Express Assembly Classes > LanerBox > LanerBox.OnMoveAttribute
OnMoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Sender. The component that generated the event.
Args. Event parameters.
The OnMoveAttribute event occurs when columns containing values of indicator attributes are moved in the workbook.
Parameters of this event cannot be changed. Args.Index returns index of the moved attribute.
Executing the example requires a form, the LanerBox component named LanerBox1 on the form and the UiErAnalyzer component that is a data source for LanerBox. A workbook of time series database should be loaded to UiErAnalyzer. The form also contains the Memo component with the Memo1 identifier.
This procedure must be assigned as a handler of the OnMoveAttribute event for LanerBox.
Sub LanerBox1OnMoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Var
Col: Integer;
Begin
Col := Args.Index + 2;
Memo1.Lines.Clear;
Memo1.Lines.Add("Column No. was moved" + ColCount.ToString);
End Sub LanerBox1OnMoveAttribute;
After moving the columns containing values of indicator attributes, the Memo1 component shows the number of the moved column.
See also: