MenuCommandService.FindCommand 方法

定义

搜索与给定命令 ID 关联的 MenuCommand

重载

FindCommand(CommandID)

搜索与给定命令 ID 关联的 MenuCommand

FindCommand(Guid, Int32)

搜索与给定命令关联的 MenuCommand

FindCommand(CommandID)

搜索与给定命令 ID 关联的 MenuCommand

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

参数

commandID
CommandID

要查找的 CommandID

返回

与给定命令关联的 MenuCommand;如果找不到命令,则为 null

实现

另请参阅

适用于

FindCommand(Guid, Int32)

搜索与给定命令关联的 MenuCommand

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

参数

guid
Guid

命令的 GUID。

id
Int32

命令的 ID。

返回

与给定命令关联的 MenuCommand;如果找不到命令,则为 null

另请参阅

适用于