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


ICompositeGraphicsLayer.AddLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IC > ICompositeGraphicsLayer Interface > ICompositeGraphicsLayer.AddLayer Method
ArcGIS Developer Help

ICompositeGraphicsLayer.AddLayer Method

Adds a layer to the composite graphics layer.

[Visual Basic .NET]
Public Function AddLayer ( _
    ByVal LayerName As String, _
    ByVal FeatureLayer As IFeatureLayer _
) As IGraphicsLayer
[C#]
public IGraphicsLayer AddLayer (
    string LayerName,
    IFeatureLayer FeatureLayer
);
[C++]
HRESULT AddLayer(
  BSTR LayerName,
  IFeatureLayer* FeatureLayer
);
[C++]
Parameters
LayerName [in]

LayerName is a parameter of type BSTR FeatureLayer [in]
FeatureLayer is a parameter of type IFeatureLayer*

Product Availability

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

See Also

ICompositeGraphicsLayer Interface