Express > Express Assembly Classes > LanerBox > LanerBox.OnRemoveAttribute
OnRemoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Sender. The component that generated the event.
Args. Event parameters.
The OnRemoveAttribute event occurs when a column containing values of indicator attributes is removed from the workbook.
Parameters of this event cannot be changed. Args.Index returns index of the removed 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 OnRemoveAttribute event for LanerBox.
Sub LanerBox1OnRemoveAttribute(Sender: Object; Args: ILanerBoxAttributeEventArgs);
Var
Col: Integer;
Begin
Col := Args.Index + 2;
Memo1.Lines.Clear;
Memo1.Lines.Add("Column No. was deleted " + ColCount.ToString);
End Sub LanerBox1OnRemoveAttribute;
After removing a column containing values of indicator attributes, the Memo1 component shows the number of the removed column.
See also: