Rediger

Del via


MenuCommandService.FindCommand Method

Definition

Searches for the MenuCommand associated with the given command ID.

Overloads

FindCommand(CommandID)

Searches for the MenuCommand associated with the given command ID.

FindCommand(Guid, Int32)

Searches for the MenuCommand associated with the given command.

FindCommand(CommandID)

Source:
MenuCommandService.cs
Source:
MenuCommandService.cs
Source:
MenuCommandService.cs

Searches for the MenuCommand associated with the given command ID.

public:
 virtual System::ComponentModel::Design::MenuCommand ^ FindCommand(System::ComponentModel::Design::CommandID ^ commandID);
public System.ComponentModel.Design.MenuCommand FindCommand (System.ComponentModel.Design.CommandID commandID);
public System.ComponentModel.Design.MenuCommand? FindCommand (System.ComponentModel.Design.CommandID commandID);
abstract member FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
override this.FindCommand : System.ComponentModel.Design.CommandID -> System.ComponentModel.Design.MenuCommand
Public Function FindCommand (commandID As CommandID) As MenuCommand

Parameters

commandID
CommandID

The CommandID to find.

Returns

The MenuCommand associated with the given command; otherwise, null if the command is not found.

Implements

See also

Applies to

FindCommand(Guid, Int32)

Source:
MenuCommandService.cs
Source:
MenuCommandService.cs
Source:
MenuCommandService.cs

Searches for the MenuCommand associated with the given command.

protected:
 System::ComponentModel::Design::MenuCommand ^ FindCommand(Guid guid, int id);
protected System.ComponentModel.Design.MenuCommand FindCommand (Guid guid, int id);
protected System.ComponentModel.Design.MenuCommand? FindCommand (Guid guid, int id);
member this.FindCommand : Guid * int -> System.ComponentModel.Design.MenuCommand
Protected Function FindCommand (guid As Guid, id As Integer) As MenuCommand

Parameters

guid
Guid

The GUID of the command.

id
Int32

The ID of the command.

Returns

The MenuCommand associated with the given command; otherwise, null if the command is not found.

See also

Applies to