ArcObjects Library Reference (Controls)  

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#]

Optional Values

StyleCategory   To indicate that this parameter is undefined, pass in Type.Missing.
[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

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