IMenuItem Interface

Represents a menu item that can be added to a context menu for ISharePointProjectItem or IExplorerNode.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
Public Interface IMenuItem _
    Inherits IAnnotatedObject
public interface IMenuItem : IAnnotatedObject

The IMenuItem type exposes the following members.

Properties

  Name Description
Public property Annotations Gets an instance IAnnotationDictionary to associate custom data with the object implementing the IAnnotatedObject interface. (Inherited from IAnnotatedObject.)
Public property IsEnabled Gets or sets whether a menu command is enabled and can be executed.
Public property SortOrder Gets the sort order of the menu command in the UI. Default value is 0.
Public property Text Gets or sets the menu command text.

Top

Events

  Name Description
Public event Click Occurs when a menu command is clicked.

Top

See Also

Reference

Microsoft.VisualStudio.SharePoint Namespace