This document is archived and information here might be outdated.  Recommended version.


ISymbologyStyleClass.ItemCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IS > ISymbologyStyleClass Interface > ISymbologyStyleClass.ItemCount Property
ArcGIS Developer Help

ISymbologyStyleClass.ItemCount Property

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
);
[C++]
HRESULT get_ItemCount(
  VARIANT StyleCategory,
  System.Int32* Count
);
[C++]
Parameters
StyleCategory [in, 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*

Product Availability

Available with ArcGIS Engine.

Description

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.

[C#]

In C# use the get_ItemCount method, as indexed property accessors are not supported.

See Also

ISymbologyStyleClass Interface