Share via


ModelingWindowPane.MenuService Property

Gets the menu command service.

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

Syntax

'Declaration
Public Overridable ReadOnly Property MenuService As IMenuCommandService
public virtual IMenuCommandService MenuService { get; }
public:
virtual property IMenuCommandService^ MenuService {
    IMenuCommandService^ get ();
}
abstract MenuService : IMenuCommandService with get 
override MenuService : IMenuCommandService with get
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