System [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00] 1.0.3300.0 1.0.5000.0 2.0.0.0 4.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Runtime.InteropServices.ComVisible(true) This interface provides methods to: Find, invoke, add and remove global designer verb commands. Find, invoke, add and remove standard menu commands. Alter the event handlers associated with standard menu commands. Display a shortcut menu of standard commands that is associated with a menu . Designer verbs represent custom-defined commands that are listed on the shortcut menu in design mode. A designer verb can provide a specified text label. Each designer verb is automatically assigned a unique . A designer can provide designer verbs through its property, but these are only available when the designer's component is currently selected. Global designer verbs are designer verb commands that can be accessed from a design-mode shortcut menu regardless of the selected component. This interface allows you to manage the set of global designer verbs that are available in design mode. You can add a global designer verb using the method, and you can remove a global designer verb using the method. You can invoke a designer verb using the method if you know the of the verb. The property of this interface contains the current set of designer verb commands to display in a shortcut menu. This set of designer verb commands consists of all global designer verbs and any designer verbs offered by the designer of any currently selected component. This set of verbs is updated each time a component with a designer offering designer verb commands is selected or deselected. Menu commands are limited to the set of predefined standard commands. Most of the predefined standard commands are defined in the and enumerations. You can add, remove, and invoke menu commands, and search for menu commands that have been added to a menu using methods of this interface. You can add a standard menu command using the method, and remove a standard menu command using the method. You can attach an event handler to a predefined standard menu command by following the procedure detailed in the documentation for the method. You can retrieve a menu command by if it has been added to a menu using the method. You can invoke a menu command or designer verb command by using the method. An attempt to add a menu command with an already existing will throw an . When adding a menu command, be sure to check that it is not already on a menu using the method, or use exception handling wisely. A menu command can be added to a menu, and have its or properties set to false. If you cannot visually locate a menu command that has been added on a menu, one of these properties may have been set to false. You can show certain standard shortcut menus containing menu commands at a specified location using the method. The documentation for this method contains a table listing the command IDs that specify the valid menus to show. Provides methods to manage the global designer verbs and menu commands available in design mode, and to show some types of shortcut menus. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void The and enumerations contain identifiers for predefined standard commands and menu commands that are already associated with a location on a particular menu. An attempt to add a menu command with an already existing will throw an . When adding a menu command, be sure to check that it is not already on a menu using the method, or use exception handling wisely. You can attach an event handler to a predefined menu command with the following procedure: If the menu command to link with an event handler has been added to a menu, or is located with the method, consider whether you wish to restore this menu command later, and whether you want to invoke the current event handler from your new event handler. If your code might restore the menu command or chain the invocation of event handlers, be sure to store a reference to the menu command somewhere. Ensure that any previously existing menu command with the same has been removed from the menu using the method. Create a new and specify your event handler in the constructor, along with a representing the command to add. Each standard menu command is associated with a predefined menu location where it is added to. The supported command IDs are defined in the and enumerations. If you want to invoke any preexisting event handler for the menu command, call the method of the menu command you have replaced on the menu from the event handler that handles the invoke event of your menu command. If you are interested in restoring the event handler of a preexisting menu command that you have replaced, add the stored, preexisting menu command after you remove the replacement menu command you created. You may want to add this behavior to the Dispose method for your type. Adds the specified standard menu command to the menu. The to add. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void Designers of components that provide designer verbs should use the property of their designer rather than calling this method. This method adds a global designer verb that can be accessed from the right-click shortcut menu in design mode regardless of the currently selected component. Adds the specified designer verb to the set of global designer verbs. The to add. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.ComponentModel.Design.MenuCommand To be added Searches for the specified command ID and returns the menu command associated with it. The associated with the command ID, or null if no command is found. The to search for. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Boolean This method searches for a menu command or designer verb with a matching the specified . This method first searches within the designer verbs collection consisting of global and active designer-provided verbs before continuing the search, if necessary, through the global environment command service. If a matching menu command or designer verb is located, the command is invoked. Invokes a menu or designer verb command matching the specified command ID. true if the command was found and invoked successfully; otherwise, false. The of the command to search for and execute. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void This method removes the specified if it is found. This method does not raise an exception or return a value if the specified is not found. Use the method to determine whether a matching a specified is located on a menu. Removes the specified standard menu command from the menu. The to remove. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void This method removes the specified global designer verb if it is within the global designer verbs collection. You can add a designer verb to the global designer verbs collection using the method. Removes the specified designer verb from the collection of global designer verbs. The to remove. Method 1.0.5000.0 2.0.0.0 4.0.0.0 System.Void The method can display any of the following Visual Studio shortcut menus containing menu commands at a specified point: Menu CommandID The shortcut menu displayed for a container The shortcut menu displayed for the component tray The shortcut menu displayed for a selection The shortcut menu displayed for a tray selection This method can also display other registered shortcut menus. Shows the specified shortcut menu at the specified location. The for the shortcut menu to show. The x-coordinate at which to display the menu, in screen coordinates. The y-coordinate at which to display the menu, in screen coordinates. Property 1.0.5000.0 2.0.0.0 4.0.0.0 System.ComponentModel.Design.DesignerVerbCollection To be added: an object of type 'DesignerVerbCollection' The set of currently available designer verbs consists of all global designer verbs, which are added by the method on this interface, and individual designer verbs, which are offered by the property of individual designers. If the name of a global verb conflicts with the name of a designer verb, the designer-provided designer verb takes precedence. Gets a collection of the designer verbs that are currently available.