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


ILegend2.DefaultLegendItem Property (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.DefaultLegendItem Property
ArcGIS Developer Help

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