Share via


MapControl.Layers Property

Definition

Gets the collection of map layer objects that are children of the MapControl.

public:
 property IVector<MapLayer ^> ^ Layers { IVector<MapLayer ^> ^ get(); void set(IVector<MapLayer ^> ^ value); };
IVector<MapLayer> Layers();

void Layers(IVector<MapLayer> value);
public IList<MapLayer> Layers { get; set; }
var iVector = mapControl.layers;
mapControl.layers = iVector;
Public Property Layers As IList(Of MapLayer)

Property Value

The collection of map layer objects that are children of the MapControl. The default is an empty collection.

Remarks

Each layer contains MapElement objects rendered on top of the map. The first layer in the collection is the bottom-most layer rendered in the map.

Applies to