MenuCommandService.FindCommand Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
Returns
The MenuCommand associated with the given command; otherwise, null
if the command is not found.
Implements
See also
Applies to
FindCommand(Guid, Int32)
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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για