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


ILegendInfo.LegendGroupCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendInfo Interface > ILegendInfo.LegendGroupCount Property
ArcGIS Developer Help

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(
  System.Int32* 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