IToolbarControls.Clear

Syntax

Clear;

Description

The Clear method removes all components located on the toolbar.

Example

Executing the example requires a form, a button named Button1 on it and the Toolbar component named Toolbar1.

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

Begin

Toolbar1.BeginUpdate;

Toolbar1.Controls.Clear;

Toolbar1.EndUpdate;

End Sub Button1OnClick;

After executing the example clicking the button removes all controls from the toolbar.

See also:

IToolbarControls