This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcGlobe > ESRI.ArcGIS.ArcGlobe > Interfaces > IG > IGMxDocument Interface > IGMxDocument.AddLayer Method (ArcObjects .NET 10.5 SDK) |
Adds a layer to the current focus map.
[Visual Basic .NET] Public Sub AddLayer ( _ ByVal layer As ILayer _ )
[C#] public void AddLayer ( ILayer layer );
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.