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 > ILegend Interface > ILegend.AutoAdd Property (ArcObjects .NET 10.5 SDK) |
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