public void SelectLayers( IReadOnlyCollection<Layer> layers )
Public Sub SelectLayers( _ ByVal layers As IReadOnlyCollection(Of Layer) _ )
Parameters
- layers
public void SelectLayers( IReadOnlyCollection<Layer> layers )
Public Sub SelectLayers( _ ByVal layers As IReadOnlyCollection(Of Layer) _ )
public void SelectAllFeatureLayersInTOC() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return; //Zoom to the selected layers in the TOC var featureLayers = mapView.Map.Layers.OfType<FeatureLayer>(); mapView.SelectLayers(featureLayers.ToList()); }
Target Platforms: Windows 10, Windows 8.1, Windows 7