GetMenuIdOfBuiltInCommand
Description
Gets the MenuItem ID of a built-in command by its command ID and location.
Syntax
// shellFrame points here into the IShellFrame interface
const result = await shellFrame.Commands.GetMenuIdOfBuiltInCommand(
commandId,
commandLocation,
);
Parameters
Name | Type | Description |
---|---|---|
commandId | number | The unique identifier for the command. |
commandLocation | CommandLocation | The location where the command is placed. |
Return type
Type | Description |
---|---|
Promise < number > | The UI ID of the built-in command if found, otherwise throw 'Not Found' error. |