ArcObjects Library Reference (Controls)  

IToolbarControlDefault.RemoveAll Method

Removes all items from the ToolbarControl.

[Visual Basic .NET]
Public Sub RemoveAll ( _
)
[C#]
public void RemoveAll (
);
[C++]
HRESULT RemoveAll(
void
);

Product Availability

Available with ArcGIS Engine.

Description

This method removes all item's from the ToolBarControl.

Remarks

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

IToolbarControlDefault Interface