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


ILegendInfo.LegendItem Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

ILegendInfo.LegendItem Property

Optional. Defines legend formatting for layer rendered with this object.

[Visual Basic .NET]
Public ReadOnly Property LegendItem As ILegendItem
[C#]
public ILegendItem LegendItem {get;}
[C++]
HRESULT get_LegendItem(
  ILegendItem** Format
);
[C++]

Parameters Format [out, retval]
Format is a parameter of type ILegendItem**

Product Availability

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

Remarks

Layer or renderer legend information is further formatted for display in ArcMap legends. A renderer can override this formatting by returning a LegendItem for this property. ESRI renderers typically do not return anything for this property. With this configuration, legend formatting becomes a user or developer choice on the legend object.

See Also

ILegendInfo Interface