ArcObjects Library Reference (SystemUI)  

IMenuDef.ItemCount Property

The number of items in this menu.

[Visual Basic .NET]
Public ReadOnly Property ItemCount As Integer
[C#]
public int ItemCount {get;}
[C++]
HRESULT get_ItemCount(
  long* numItems
);
[C++]

Parameters

numItems [out, retval]   numItems is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

When implementing IMenuDef to create a custom menu, use the ItemCount property to specify how many items will be on this menu.

See Also

IMenuDef Interface