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


ILegend2.DefaultLegendItem Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

ILegend2.DefaultLegendItem Property

The default legend item for the specified layer.

[Visual Basic .NET]
Public Function get_DefaultLegendItem ( _
    ByVal Layer As ILayer _
) As ILegendItem
[C#]
public ILegendItem get_DefaultLegendItem (
    ILayer Layer
);
[C++]
HRESULT get_DefaultLegendItem(
  ILayer* Layer,
  ILegendItem** Item
);
[C++]

Parameters Layer [in]
Layer is a parameter of type ILayer Item [out, retval]
Item is a parameter of type ILegendItem

Product Availability

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

See Also

ILegend2 Interface