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


ILegendGroup.AddClass Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendGroup Interface > ILegendGroup.AddClass Method
ArcGIS Developer Help

ILegendGroup.AddClass Method

Adds a new legend class to the group at the end of list.

[Visual Basic .NET]
Public Sub AddClass ( _
    ByVal LegendClass As ILegendClass _
)
[C#]
public void AddClass (
    ILegendClass LegendClass
);
[C++]
HRESULT AddClass(
  ILegendClass* LegendClass
);
[C++]
Parameters
LegendClass [in]

LegendClass is a parameter of type ILegendClass*

Product Availability

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

Remarks

Modifying the number of classes in a LegendGroup through addition, insertion, and deletion is the job of the renderer object.

See Also

ILegendGroup Interface