This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IT > IToolbarPalette Interface > IToolbarPalette.Remove Method (ArcObjects .NET 10.4 SDK) |
Removes the item at the specified index from the ToolbarPalette.
[Visual Basic .NET] Public Sub Remove ( _ ByVal index As Integer _ )
[C#] public void Remove ( int index );
[C++]
HRESULT Remove(
long index
);
[C++]
Parameters index [in] index is a parameter of type long
Removes the item at the specified index from the ToolbarPalette. The item at the top of the palette as an index of 0.
1023 800a03ff: The specified index is out of range
The Remove 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.