![]() ![]() |
ESRI.ArcGIS.ADF.IMS | |
Layers Property | |
See Also Example |
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapView Class : Layers Property |
Visual Basic (Declaration) | |
---|---|
Public Property Layers As LayerCollection |
Visual Basic (Usage) | ![]() |
---|---|
|
C# | |
---|---|
public LayerCollection Layers {get; set;} |
The following example gets a reference to the map's layer colleciton, then iterates
through the collection, and prints out whether the layer is a feature (vector)
layer or image layer. The code assumes an existing MapView object.
C# | ![]() |
---|---|
StringBuilder sb = new StringBuilder(); |
Visual Basic | ![]() |
---|---|
Dim sb As New StringBuilder() |
Layers allows access to the layers in the map. Use the layer
collection to access an individual layer, from which layer properties can be read and
set. For example, if you want to set the visibility of a layer, obtain the layer from
this collection and set its Visible property.