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


ILegendGroup.RemoveClass 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.RemoveClass Method
ArcGIS Developer Help

ILegendGroup.RemoveClass Method

Removes the legend class from the group at the specified index.

[Visual Basic .NET]
Public Sub RemoveClass ( _
    ByVal Index As Integer _
)
[C#]
public void RemoveClass (
    int Index
);
[C++]
HRESULT RemoveClass(
  long Index
);
[C++]
Parameters
Index [in]

Index is a parameter of type long

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