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


IBasicMap2.AddLayers Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IB > IBasicMap2 Interface > IBasicMap2.AddLayers Method
ArcGIS Developer Help

IBasicMap2.AddLayers Method

Adds multiple layers to the map, arranging them nicely if specified.

[Visual Basic .NET]
Public Sub AddLayers ( _
    ByVal pLayers As IEnumLayer, _
    ByVal autoArrange As Boolean _
)
[C#]
public void AddLayers (
    IEnumLayer pLayers,
    bool autoArrange
);
[C++]
HRESULT AddLayers(
  IEnumLayer* pLayers,
  VARIANT_BOOL autoArrange
);
[C++]
Parameters
pLayers [in]

pLayers is a parameter of type IEnumLayer* autoArrange [in]
autoArrange is a parameter of type bool

Product Availability

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

See Also

IBasicMap2 Interface