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


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

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(
  Boolean* AutoAdd
);
[C++]
HRESULT put_AutoAdd(
  VARIANT_BOOL AutoAdd
);
[C++]
Parameters
AutoAdd [out, retval]

AutoAdd is a parameter of type bool* AutoAdd [in]
AutoAdd is a parameter of type bool

Product Availability

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

See Also

ILegend2 Interface