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


ICommandItem.Delete Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > IC > ICommandItem Interface > ICommandItem.Delete Method
ArcGIS Developer Help

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