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


IGMxDocument.AddLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcGlobe > ESRI.ArcGIS.ArcGlobe > Interfaces > IG > IGMxDocument Interface > IGMxDocument.AddLayer Method
ArcGIS Developer Help

IGMxDocument.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. Requires 3D Analyst Extension.

Remarks

This method is a shortcut to the AddLayer method on the IScene (IScene::AddLayer).

Note: Using IGMxDocument::AddLayer, the layer is added as draped on the globe surface, by default.

See Also

IGMxDocument Interface