public IReadOnlyList<Layer> GetSelectedLayers()
Public Function GetSelectedLayers() As IReadOnlyList(Of Layer)
Return Value
The collection of layers selected in the TOC.
public IReadOnlyList<Layer> GetSelectedLayers()
Public Function GetSelectedLayers() As IReadOnlyList(Of Layer)
public Task<bool> ZoomToTOCSelectedLayersAsync() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return Task.FromResult(false); //Zoom to the selected layers in the TOC var selectedLayers = mapView.GetSelectedLayers(); return mapView.ZoomToAsync(selectedLayers); }
public Task<bool> ZoomToTOCSelectedLayersAsync() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return Task.FromResult(false); //Zoom to the selected layers in the TOC var selectedLayers = mapView.GetSelectedLayers(); return mapView.ZoomToAsync(selectedLayers); }
public Task<bool> PanToTOCSelectedLayersAsync() { //Get the active map view. var mapView = MapView.Active; if (mapView == null) return Task.FromResult(false); //Pan to the selected layers in the TOC var selectedLayers = mapView.GetSelectedLayers(); return mapView.PanToAsync(selectedLayers); }
Target Platforms: Windows 11, Windows 10, Windows 8.1