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

ILegendItem.Graphics Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IL > ILegendItem Interface > ILegendItem.Graphics Property
ArcGIS Developer Help

ILegendItem.Graphics Property

List of graphics that represent the legend item. Must call CreateGraphics first.

[Visual Basic .NET]
Public ReadOnly Property Graphics As IEnumElement
public IEnumElement Graphics {get;}
HRESULT get_Graphics(
  IEnumElement** Graphics
Graphics [out, retval]

Graphics is a parameter of type IEnumElement**

Product Availability

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


Graphics are measured in points.  The lower left corner is (0, 0).  Put elements in groups to keep the legend from flowing them across columns.



Each element in the graphic list should be flowable, i.e,. can be moved to a new column in the legend if necessary.  Implement "keep together" by putting the elements that need to stay together in a group.  The top level elements must be put in the list in top to bottom order.

See Also

ILegendItem Interface