Partager via


IMenuCommand Interface

Determines whether the command appears on the menu.

Namespace:  Microsoft.VisualStudio.Modeling.ExtensionEnablement
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Interface IMenuCommand
public interface IMenuCommand
public interface class IMenuCommand
type IMenuCommand =  interface end
public interface IMenuCommand

The IMenuCommand type exposes the following members.

Properties

  Name Description
Public property Enabled Set to true to allow the user to invoke the command. If false, the label will be grayed out if it is visible.
Public property Text Set the label that identifies this command in the menu. You do not need to set this unless you want the label to change.
Public property Visible Set to true to have the command appear in the menu.

Top

See Also

Reference

Microsoft.VisualStudio.Modeling.ExtensionEnablement Namespace