ModelingWindowPane.MenuService Property

Gets support to manage the global designer verbs, menu commands, and shortcut menus for the modeling window.

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

Syntax

'宣言
Public Overridable ReadOnly Property MenuService As IMenuCommandService
'使用
Dim instance As ModelingWindowPane
Dim value As IMenuCommandService

value = instance.MenuService
public virtual IMenuCommandService MenuService { get; }
public:
virtual property IMenuCommandService^ MenuService {
    IMenuCommandService^ get ();
}
public function get MenuService () : IMenuCommandService

Property Value

Type: System.ComponentModel.Design.IMenuCommandService

The IMenuCommandService interface for the modeling window.

Remarks

This property invokes the IMenuCommandService interface.

Derived classes and hosted controls can use this interface to add commands to the modeling window. Commands only appear when the modeling window has focus. Command placement depends on the .vsct file.

By using this interface, you can link command services together and associate handlers only with existing commands.

Permissions

See Also

Reference

ModelingWindowPane Class

ModelingWindowPane Members

Microsoft.VisualStudio.Modeling.Shell Namespace