System.ComponentModel.Design.IMenuCommandService.GlobalInvoke Method

Invokes a menu or designer verb command matching the specified command ID.

Syntax

public bool GlobalInvoke (CommandID commandID)

Parameters

commandID
The System.ComponentModel.Design.CommandID of the command to search for and execute.

Returns

true if the command was found and invoked successfully; otherwise, false.

Remarks

This method searches for a menu command or designer verb with a System.ComponentModel.Design.CommandID matching the specified System.ComponentModel.Design.CommandID. 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.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0