GetCommand

Method of IMenuObject

Returns command handler from position

Return Value

JavaScript

var ppHandler = MenuObject.GetCommand(nPosition);

Visual Basic Script

ppHandler = MenuObject.GetCommand nPosition

C++

CComPtr<ICommandHandler> pHandler;
HRESULT hr = MenuObject.GetCommand(nPosition, &pHandler);