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


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

ILegend2.AutoAdd Property

Indicates if a new item should be added when a new layer is added to the map.

[Visual Basic .NET]
Public Property AutoAdd As Boolean
[C#]
public bool AutoAdd {get; set;}
[C++]
HRESULT get_AutoAdd(
  VARIANT_BOOL* AutoAdd
);
[C++]
HRESULT put_AutoAdd(
  VARIANT_BOOL AutoAdd
);
[C++]

Parameters AutoAdd [out, retval] AutoAdd is a parameter of type VARIANT_BOOL AutoAdd [in] AutoAdd is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

ILegend2 Interface