Partager via


IMenuItem Interface

Definition

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

public interface class IMenuItem : Microsoft::VisualStudio::SharePoint::IAnnotatedObject
public interface IMenuItem : Microsoft.VisualStudio.SharePoint.IAnnotatedObject
type IMenuItem = interface
    interface IAnnotatedObject
Public Interface IMenuItem
Implements IAnnotatedObject
Implements

Properties

Annotations

Gets an instance IAnnotationDictionary to associate custom data with the object implementing the IAnnotatedObject interface.

(Inherited from IAnnotatedObject)
IsEnabled

Gets or sets whether a menu command is enabled and can be executed.

SortOrder

Gets the sort order of the menu command in the UI. Default value is 0.

Text

Gets or sets the menu command text.

Events

Click

Occurs when a menu command is clicked.

Applies to