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


ILegend2.InsertItem 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.InsertItem Method
ArcGIS Developer Help

ILegend2.InsertItem Method

Inserts a new item into the legend (at the location specified by index).

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

Index is a parameter of type long Item [in]
Item is a parameter of type ILegendItem*

Product Availability

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

See Also

ILegend2 Interface