scripting:api:menu-object:item-count

ItemCount

Property of IMenuObject

Returns items count

Read-Only Property of type ULONG

var nCount = MenuObject.ItemCount;
nCount = MenuObject.ItemCount
ULONG nCount;
HRESULT hr = MenuObject.get_ItemCount(&nCount);