MenuCommandService.FindCommand 方法

定義

搜尋 MenuCommand 與該指令 ID 相關的

多載

名稱 Description
FindCommand(CommandID)

搜尋 MenuCommand 與該指令 ID 相關的

FindCommand(Guid, Int32)

搜尋與該指令相關的 。MenuCommand

FindCommand(CommandID)

來源:
MenuCommandService.cs
來源:
MenuCommandService.cs
來源:
MenuCommandService.cs
來源:
MenuCommandService.cs
來源:
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)

來源:
MenuCommandService.cs
來源:
MenuCommandService.cs
來源:
MenuCommandService.cs
來源:
MenuCommandService.cs
來源:
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 若找不到該指令。

另請參閱

適用於