This document is archived and information here might be outdated.  Recommended version.

IToolbarControl.RemoveAll Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarControl Interface > IToolbarControl.RemoveAll Method
ArcGIS Developer Help

IToolbarControl.RemoveAll Method

Removes all items from the ToolbarControl.

[Visual Basic .NET]
Public Sub RemoveAll ( _
public void RemoveAll (
HRESULT RemoveAll(

Product Availability

Available with ArcGIS Engine.


This method removes all item's from the ToolBarControl.


For each item removed the RemoveAll method will automatically find the IToolbarItem::Command in the CommandPool and decrement the ICommandPool::UsageCount by 1. If the  ICommandPool::UsageCount reaches 0 the command will be released from the CommandPool .

See Also

IToolbarControl Interface