ArcObjects Library Reference  (Carto)    

ICompositeGraphicsLayer.AddLayer Method

Adds a layer to the composite graphics layer.

[Visual Basic 6.0]
Function AddLayer(
    ByVal LayerName As String, _
    ByVal FeatureLayer As IFeatureLayer _
) As IGraphicsLayer
[Visual Basic .NET]
Public Function AddLayer ( _
    ByVal LayerName As String, _
    ByVal FeatureLayer As IFeatureLayer _
) As IGraphicsLayer
[C#]
public IGraphicsLayer AddLayer (
    string LayerName,
    IFeatureLayer FeatureLayer
);
[Java]
public IGraphicsLayer addLayer (
    String LayerName,
    IFeatureLayer FeatureLayer
)
throws
    IOException,
    AutomationException
[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

 


Feedback Send feedback on this page