This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendInfo Interface > ILegendInfo.LegendGroupCount Property (ArcObjects .NET 10.5 SDK) |
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
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.