MenuCommandService.FindCommand 方法

定义

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

重载

名称 说明
FindCommand(CommandID)

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

FindCommand(Guid, Int32)

MenuCommand搜索与给定命令关联的项。

FindCommand(CommandID)

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

MenuCommand搜索与给定命令 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

参数

commandID
CommandID

CommandID 查找的。

返回

MenuCommand 给定命令关联的命令;否则, null 如果未找到该命令。

实现

另请参阅

适用于

FindCommand(Guid, Int32)

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

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 如果未找到该命令。

另请参阅

适用于