====== GetMenuItemPos ====== Method of [[:scripting:api:menu-object:start|IMenuObject]] ===== Description ===== Finds menu position by command name ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strCommandName** ==== Return Value ==== * [[:scripting:api:menu-location:start|IMenuLocation]] **ppLocation** ===== Syntax ===== ==== JavaScript ==== var ppLocation = MenuObject.GetMenuItemPos(strCommandName); ==== Visual Basic Script ==== ppLocation = MenuObject.GetMenuItemPos strCommandName ==== C++ ==== CComPtr pLocation; HRESULT hr = MenuObject.GetMenuItemPos(strCommandName, &pLocation); ===== See Also ===== [[:scripting:api:menu-object:start|IMenuObject]] ~~NOTOC~~