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


IMultiLayerMarkerSymbol.AddLayer Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Display)  

IMultiLayerMarkerSymbol.AddLayer Method

Add marker symbol layer.

[Visual Basic .NET]
Public Sub AddLayer ( _
    ByVal markerLayer As IMarkerSymbol _
)
[C#]
public void AddLayer (
    IMarkerSymbol markerLayer
);
[C++]
HRESULT AddLayer(
  IMarkerSymbol* markerLayer
);
[C++]

Parameters markerLayer [in]
markerLayer is a parameter of type IMarkerSymbol*

Product Availability

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

Description

AddLayer adds the specified marker symbol to a IMultiLayerMarkerSymbol . This symbol will draw in the topmost position in the IMultiLayerMarkerSymbol. The layer can be of any type supported by the IMarkerSymbol interface except types implementing IMultiLayerMarkerSymbol.  In this case an E_INVALIDARG HRESULT will be thrown. Therefore, a MultiLayerMarkerSymbol cannot be imbeded within another MultiLayerMarkerSymbol.

See Also

IMultiLayerMarkerSymbol Interface