This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendInfo Interface > ILegendInfo.LegendItem Property (ArcObjects .NET 10.5 SDK) |
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
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.