Using the Process Analyst > Process Analyst for Developers > Automation Model > IToolbarButtons.RemoveAll [Method]

IToolbarButtons.RemoveAll [Method]

Removes every button from this Toolbar.

Defined As

Execution Results

If this method succeeds, the return value will be Success. If this method does not succeed, the return value will be GeneralFailure.

Calling Syntax

This example assumes there is a valid ToolbarButtons collection as retrieved from an ObjectView. (for example, VBA: objectView.Toolbars.Item(1).Buttons)

[VBA]

Sub Example(Buttons As Object)
Buttons.RemoveAll()
End Sub

[Cicode]

FUNCTION Example(OBJECT hButtons)
_ObjectCallMethod(hButtons, "RemoveAll");
END