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

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

ILegend2.AddItem Method

Adds a new item to the legend (to the end of the list).

[Visual Basic .NET]
Public Sub AddItem ( _
    ByVal Item As ILegendItem _
public void AddItem (
    ILegendItem Item
  ILegendItem* Item
Item [in]

Item is a parameter of type ILegendItem*

Product Availability

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

See Also

ILegend2 Interface