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


ILegendInfo.LegendGroupCount Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILegendInfo.LegendGroupCount Property

Number of legend groups contained by the object.

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

Parameters Count [out, retval] Count is a parameter of type long

Product Availability

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

Remarks

The number of legend groups is determined by the implementation of the renderer, consequently this property is read only. For example, SimpleRenderer has one group, while a BiUniqueValueRenderer has any number of groups.

See Also

ILegendInfo Interface