This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IT > IToolBarDef Interface > IToolBarDef.ItemCount Property (ArcObjects .NET 10.5 SDK) |
The number of items in this toolbar.
[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
When implementing IToolBarDef to create a custom toolbar, use the ItemCount property to specify how many items will be on this toolbar.