scripting:api:menu-object:get-menu-item-pos

GetMenuItemPos

Method of IMenuObject

Finds menu position by command name

  • BSTR strCommandName
var ppLocation = MenuObject.GetMenuItemPos(strCommandName);
ppLocation = MenuObject.GetMenuItemPos strCommandName
CComPtr<IMenuLocation> pLocation;
HRESULT hr = MenuObject.GetMenuItemPos(strCommandName, &pLocation);