ESRI.ArcGIS.ADF.IMS
Add Method
See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > LayerCollection Class : Add Method




layer
Layer to be added.
Adds a layer to the collection.

Syntax

Visual Basic (Declaration) 
Public Sub Add( _
   ByVal layer As Layer _
) 
Visual Basic (Usage)Copy Code
Dim instance As LayerCollection
Dim layer As Layer
 
instance.Add(layer)
C# 
public void Add( 
   Layer layer
)

Parameters

layer
Layer to be added.

Example

Many examples in the Library Reference use the Add method, including AcetateLayer and SimpleMarkerSymbol

Remarks

This method adds the layer to the layer collection at the top position, so that it will draw on top of other layers. If you wish to have the layer draw below existing layers, you may use Insert to add the layer at a specific location in the collection, or use MoveTo to relocate the layer.

See Also

© 2010 All Rights Reserved.