Insert(Index: Integer; Value: IComponent);
Index is an index of position in which the element should be inserted.
Value is a component that should be inserted on the toolbar.
The Insert method inserts the Value component in the Index position on the toolbar.
Executing the example requires a form, a button named Button1 positioned on it and the Toolbar component named Toolbar1.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Controls: IToolbarControls;
Begin
Controls := Toolbar1.Controls;
Controls.Insert(Controls.Count, Controls.Item(0));
End Sub Button1OnClick;
After executing the example pressing the button moves the control element placed on the first position of toolbar to the last position.
See also: