This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandItem Interface > ICommandItem.Delete Method (ArcObjects .NET 10.5 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.