This document is archived and information here might be outdated.  Recommended version.


ICommandItem.Delete Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Framework)  

ICommandItem.Delete Method

Removes this object from the commandbar.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

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.

See Also

ICommandItem Interface

.NET Samples

Applying user interface customizations at startup (Code Files: AcmeExt)