This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarPalette Interface > IToolbarPalette.RemoveAll Method (ArcObjects .NET 10.5 SDK) |
Removes all items from the ToolbarPalette.
[Visual Basic .NET]
Public Sub RemoveAll ( _
)
[C#] public void RemoveAll ( );
[C++]
HRESULT RemoveAll(
void
);
This method removes all items from the ToolbarPalette.
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.