//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ /* */ namespace System.ComponentModel.Design { using System.Runtime.Remoting; using System.ComponentModel; using System.Diagnostics; using System; /// /// Provides an interface for a designer to add menu items to the Visual Studio /// 7.0 menu. /// [System.Runtime.InteropServices.ComVisible(true)] public interface IMenuCommandService { /// /// Gets or sets an array of type /// that indicates the verbs that are currently available. /// DesignerVerbCollection Verbs { get; } /// /// /// Adds a menu command to the document. /// /// void AddCommand(MenuCommand command); /// /// /// Adds a verb to the set of global verbs. /// /// void AddVerb(DesignerVerb verb); /// /// /// Searches for the given command ID and returns /// the /// associated with it. /// /// MenuCommand FindCommand(CommandID commandID); /// /// Invokes a command on the local form or in the global environment. /// bool GlobalInvoke(CommandID commandID); /// /// /// Removes the specified from the document. /// /// void RemoveCommand(MenuCommand command); /// /// /// Removes the specified verb from the document. /// /// void RemoveVerb(DesignerVerb verb); /// /// Shows the context menu with the specified command ID at the specified /// location. /// void ShowContextMenu(CommandID menuID, int x, int y); } }