ArcObjects Library Reference (Carto)  

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,
  IGraphicsLayer** GraphicsLayer
);
[C++]

Parameters

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

  FeatureLayer is a parameter of type IFeatureLayer

GraphicsLayer [out, retval]

  GraphicsLayer is a parameter of type IGraphicsLayer

Product Availability

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

See Also

ICompositeGraphicsLayer Interface