Method of IStatusBar
Get command index
var pnPosition = StatusBar.CommandToIndex(strCommandName);
pnPosition = StatusBar.CommandToIndex strCommandName
long nPosition; HRESULT hr = StatusBar.CommandToIndex(strCommandName, &nPosition);
IStatusBar