This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandItem Interface > ICommandItem.Delete Method (ArcObjects .NET 10.4 SDK) |
Removes this object from the commandbar.
[Visual Basic .NET]
Public Sub Delete ( _
)
[C#] public void Delete ( );
When you delete a commanditem from a commandbar it is not deleted from the application; it is just removed from the commandbar. You can always add that command back to a commandbar.