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);

==== Visual Basic Script ====

ppLocation = MenuObject.GetMenuItemPos strCommandName

==== C++ ====

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

===== See Also ===== IMenuObject