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

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

ILegend.ClearItems Method

Removes all items from the legend.

[Visual Basic .NET]
Public Sub ClearItems ( _
public void ClearItems (
HRESULT ClearItems(

Product Availability

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

See Also

ILegend Interface