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


IMxDocument.AddLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IM > IMxDocument Interface > IMxDocument.AddLayer Method
ArcGIS Developer Help

IMxDocument.AddLayer Method

Adds a layer to the current focus map.

[Visual Basic .NET]
Public Sub AddLayer ( _
    ByVal Layer As ILayer _
)
[C#]
public void AddLayer (
    ILayer Layer
);

Product Availability

Available with ArcGIS Desktop.

Remarks

This method is a shortcut to the AddLayer method on the focus map (IMap::Addlayer).

See Also

IMxDocument Interface | IMap.AddLayer Method