Compartir a través de


ModelingWindowPane.MenuService Property

Gets the menu command service.

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

Syntax

'Declaración
Public Overridable ReadOnly Property MenuService As IMenuCommandService
    Get
public virtual IMenuCommandService MenuService { get; }
public:
virtual property IMenuCommandService^ MenuService {
    IMenuCommandService^ get ();
}
abstract MenuService : IMenuCommandService
override MenuService : IMenuCommandService
function get MenuService () : IMenuCommandService

Property Value

Type: System.ComponentModel.Design.IMenuCommandService
By default, the IMenuCommandService interface for the window pane.

Remarks

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

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

.NET Framework Security

See Also

Reference

ModelingWindowPane Class

Microsoft.VisualStudio.Modeling.Shell Namespace