This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IS > ISymbologyStyleClass Interface > ISymbologyStyleClass.ItemCount Property (ArcObjects .NET 10.5 SDK) |
The number of items in the SymbologyStyleClass.
[Visual Basic .NET] Public Function get_ItemCount ( _ [ByVal StyleCategory As Object] _ ) As Integer
[C#] public int get_ItemCount ( object StyleCategory );
Optional Values
[C++]
HRESULT get_ItemCount(
VARIANT StyleCategory,
long* Count
);
[C++]
Parameters StyleCategory [optional] StyleCategory is a parameter of type VARIANT
To indicate this parameter is undefined pass in a VARIANT with type VT_ERROR and scode value of DISP_E_PARAMNOTFOUND. Count [out, retval] Count is a parameter of type long
Returns the number of items in the SymbologyStyleClass.
Pass a StyleCategory to return the number of items in a SymbologyStyleClass with the specified IStyleGalleryItem::Category. The StyleCategory passed is case sensitive.
The ItemCount property will force any items to be loaded into a SymbologyStyleClass even when it is not the current StyleClass.
In C# use the get_ItemCount method, as indexed property accessors are not supported.